/* 2ecf3d00-7f73-452c-941a-1a374a8d35de */
(function(a) {
	a.widget && (a.widget("mobile.jqmMobiscroll", a.mobile.widget, {
		options: {
			theme: "jqm",
			preset: "date",
			animate: "pop"
		},
		_create: function() {
			var b = this.element,
			l = a.extend(this.options, b.jqmData("options"));
			b.mobiscroll(l)
		}
	}), a(document).on("pagecreate",
	function(b) {
		a(':jqmData(role="mobiscroll")', b.target).each(function() {
			a(this).jqmMobiscroll()
		})
	}))
})(jQuery); (function(a, b) {
	function l(a) {
		for (var c in a) if (q[a[c]] !== b) return ! 0;
		return ! 1
	}
	function k(c, d, g) {
		var y = c;
		if ("object" === typeof d) return c.each(function() {
			i[this.id] && i[this.id].destroy();
			new a.mobiscroll.classes[d.component || "Scroller"](this, d)
		});
		"string" === typeof d && c.each(function() {
			var a;
			if ((a = i[this.id]) && a[d]) if (a = a[d].apply(this, Array.prototype.slice.call(g, 1)), a !== b) return y = a,
			!1
		});
		return y
	}
	function c(a) {
		if (j.tapped && !a.tap && !("TEXTAREA" == a.target.nodeName && "mousedown" == a.type)) return a.stopPropagation(),
		a.preventDefault(),
		!1
	}
	var j, f = +new Date,
	i = {},
	s = a.extend,
	q = document.createElement("modernizr").style,
	d = l(["perspectiveProperty", "WebkitPerspective", "MozPerspective", "OPerspective", "msPerspective"]),
	g = l(["flex", "msFlex", "WebkitBoxDirection"]),
	O = function() {
		var a = ["Webkit", "Moz", "O", "ms"],
		b;
		for (b in a) if (l([a[b] + "Transform"])) return "-" + a[b].toLowerCase() + "-";
		return ""
	} (),
	m = O.replace(/^\-/, "").replace(/\-$/, "").replace("moz", "Moz");
	a.fn.mobiscroll = function(b) {
		s(this, a.mobiscroll.components);
		return k(this, b, arguments)
	};
	j = a.mobiscroll = a.mobiscroll || {
		version: "2.17.1",
		running: 1,
		util: {
			prefix: O,
			jsPrefix: m,
			has3d: d,
			hasFlex: g,
			isOldAndroid: /android [1-3]/i.test(navigator.userAgent),
			preventClick: function() {
				j.tapped++;
				setTimeout(function() {
					j.tapped--
				},
				500)
			},
			testTouch: function(b, c) {
				if ("touchstart" == b.type) a(c).attr("data-touch", "1");
				else if (a(c).attr("data-touch")) return a(c).removeAttr("data-touch"),
				!1;
				return ! 0
			},
			objectToArray: function(a) {
				var b = [],
				c;
				for (c in a) b.push(a[c]);
				return b
			},
			arrayToObject: function(a) {
				var b = {},
				c;
				if (a) for (c = 0; c < a.length; c++) b[a[c]] = a[c];
				return b
			},
			isNumeric: function(a) {
				return 0 <= a - parseFloat(a)
			},
			isString: function(a) {
				return "string" === typeof a
			},
			getCoord: function(a, b, c) {
				var d = a.originalEvent || a,
				b = (c ? "page": "client") + b;
				return d.changedTouches ? d.changedTouches[0][b] : a[b]
			},
			getPosition: function(c, g) {
				var i = window.getComputedStyle ? getComputedStyle(c[0]) : c[0].style,
				f,
				k;
				d ? (a.each(["t", "webkitT", "MozT", "OT", "msT"],
				function(a, c) {
					if (i[c + "ransform"] !== b) return f = i[c + "ransform"],
					!1
				}), f = f.split(")")[0].split(", "), k = g ? f[13] || f[5] : f[12] || f[4]) : k = g ? i.top.replace("px", "") : i.left.replace("px", "");
				return k
			},
			addIcon: function(c, b) {
				var d = {},
				g = c.parent(),
				f = g.find(".mbsc-err-msg"),
				i = c.attr("data-icon-align") || "left",
				k = c.attr("data-icon");
				a('<span class="mbsc-input-wrap"></span>').insertAfter(c).append(c);
				f && g.find(".mbsc-input-wrap").append(f);
				k && ( - 1 !== k.indexOf("{") ? d = JSON.parse(k) : d[i] = k, s(d, b), g.addClass((d.right ? "mbsc-ic-right ": "") + (d.left ? " mbsc-ic-left": "")).find(".mbsc-input-wrap").append(d.left ? '<span class="mbsc-input-ic mbsc-left-ic mbsc-ic mbsc-ic-' + d.left + '"></span>': "").append(d.right ? '<span class="mbsc-input-ic mbsc-right-ic mbsc-ic mbsc-ic-' + d.right + '"></span>': ""))
			},
			constrain: function(a, c, b) {
				return Math.max(c, Math.min(a, b))
			},
			vibrate: function(a) {
				"vibrate" in navigator && navigator.vibrate(a || 50)
			}
		},
		tapped: 0,
		autoTheme: "mobiscroll",
		presets: {
			scroller: {},
			numpad: {},
			listview: {},
			menustrip: {}
		},
		themes: {
			form: {},
			frame: {},
			listview: {},
			menustrip: {},
			progress: {}
		},
		i18n: {},
		instances: i,
		classes: {},
		components: {},
		defaults: {
			context: "body",
			mousewheel: !0,
			vibrate: !0
		},
		setDefaults: function(a) {
			s(this.defaults, a)
		},
		presetShort: function(a, c, d) {
			this.components[a] = function(g) {
				return k(this, s(g, {
					component: c,
					preset: !1 === d ? b: a
				}), arguments)
			}
		}
	};
	a.mobiscroll.classes.Base = function(c, b) {
		var d, g, k, m, p, e, j = a.mobiscroll,
		l = j.util,
		H = l.getCoord,
		o = this;
		o.settings = {};
		o._presetLoad = function() {};
		o._init = function(a) {
			k = o.settings;
			s(b, a);
			o._hasDef && (e = j.defaults);
			s(k, o._defaults, e, b);
			if (o._hasTheme) {
				p = k.theme;
				if ("auto" == p || !p) p = j.autoTheme;
				"default" == p && (p = "mobiscroll");
				b.theme = p;
				m = j.themes[o._class] ? j.themes[o._class][p] : {}
			}
			o._hasLang && (d = j.i18n[k.lang]);
			o._hasTheme && o.trigger("onThemeLoad", [d, b]);
			s(k, m, d, e, b);
			if (o._hasPreset && (o._presetLoad(k), g = j.presets[o._class][k.preset])) g = g.call(c, o),
			s(k, g, b)
		};
		o._destroy = function() {
			o.trigger("onDestroy", []);
			delete i[c.id];
			o = null
		};
		o.tap = function(c, b, d) {
			function e(c) {
				if (!n && (d && c.preventDefault(), n = this, f = H(c, "X"), i = H(c, "Y"), m = !1, "pointerdown" == c.type)) a(document).on("pointermove", g).on("pointerup", h)
			}
			function g(a) {
				if (n && !m && 9 < Math.abs(H(a, "X") - f) || 9 < Math.abs(H(a, "Y") - i)) m = !0
			}
			function h(c) {
				n && (m || (c.preventDefault(), b.call(n, c, o)), "pointerup" == c.type && a(document).off("pointermove", g).off("pointerup", h), n = !1, l.preventClick())
			}
			function B() {
				n = !1
			}
			var f, i, n, m;
			if (k.tap) c.on("touchstart.dw pointerdown.dw", e).on("touchcancel.dw pointercancel.dw", B).on("touchmove.dw", g).on("touchend.dw", h);
			c.on("click.dw",
			function(a) {
				a.preventDefault();
				b.call(this, a, o)
			})
		};
		o.trigger = function(d, k) {
			var f;
			k.push(o);
			a.each([e, m, g, b],
			function(a, b) {
				b && b[d] && (f = b[d].apply(c, k))
			});
			return f
		};
		o.option = function(a, c) {
			var b = {};
			"object" === typeof a ? b = a: b[a] = c;
			o.init(b)
		};
		o.getInst = function() {
			return o
		};
		b = b || {};
		a(c).addClass("mbsc-comp");
		c.id || (c.id = "mobiscroll" + ++f);
		i[c.id] = o
	};
	document.addEventListener && a.each(["mouseover", "mousedown", "mouseup", "click"],
	function(a, b) {
		document.addEventListener(b, c, !0)
	})
})(jQuery); (function(a) {
	a.mobiscroll.i18n.zh = {
		setText: "\u786e\u5b9a",
		cancelText: "\u53d6\u6d88",
		clearText: "\u660e\u786e",
		selectedText: "{count} \u9009",
		dateFormat: "yy/mm/dd",
		dateOrder: "yymmdd",
		dayNames: "\u5468\u65e5,\u5468\u4e00,\u5468\u4e8c,\u5468\u4e09,\u5468\u56db,\u5468\u4e94,\u5468\u516d".split(","),
		dayNamesShort: "\u65e5,\u4e00,\u4e8c,\u4e09,\u56db,\u4e94,\u516d".split(","),
		dayNamesMin: "\u65e5,\u4e00,\u4e8c,\u4e09,\u56db,\u4e94,\u516d".split(","),
		dayText: "\u65e5",
		hourText: "\u65f6",
		minuteText: "\u5206",
		monthNames: "1\u6708,2\u6708,3\u6708,4\u6708,5\u6708,6\u6708,7\u6708,8\u6708,9\u6708,10\u6708,11\u6708,12\u6708".split(","),
		monthNamesShort: "\u4e00,\u4e8c,\u4e09,\u56db,\u4e94,\u516d,\u4e03,\u516b,\u4e5d,\u5341,\u5341\u4e00,\u5341\u4e8c".split(","),
		monthText: "\u6708",
		secText: "\u79d2",
		timeFormat: "HH:ii",
		timeWheels: "HHii",
		yearText: "\u5e74",
		nowText: "\u5f53\u524d",
		pmText: "\u4e0b\u5348",
		amText: "\u4e0a\u5348",
		dateText: "\u65e5",
		timeText: "\u65f6\u95f4",
		calendarText: "\u65e5\u5386",
		closeText: "\u5173\u95ed",
		fromText: "\u5f00\u59cb\u65f6\u95f4",
		toText: "\u7ed3\u675f\u65f6\u95f4",
		wholeText: "\u5408\u8ba1",
		fractionText: "\u5206\u6570",
		unitText: "\u5355\u4f4d",
		labels: "\u5e74,\u6708,\u65e5,\u5c0f\u65f6,\u5206\u949f,\u79d2,".split(","),
		labelsShort: "\u5e74,\u6708,\u65e5,\u70b9,\u5206,\u79d2,".split(","),
		startText: "\u5f00\u59cb",
		stopText: "\u505c\u6b62",
		resetText: "\u91cd\u7f6e",
		lapText: "\u5708",
		hideText: "\u9690\u85cf",
		backText: "\u80cc\u90e8",
		undoText: "\u590d\u539f",
		offText: "\u5173\u95ed",
		onText: "\u5f00\u542f",
		decimalSeparator: ",",
		thousandsSeparator: " "
	}
})(jQuery); (function(a, b) {
	var l = function() {},
	k = a.mobiscroll;
	k.classes.Progress = function(c, j, f) {
		function i() {
			var a = s("value", y);
			a !== e && q(a)
		}
		function s(a, c) {
			var d = g.attr(a);
			return d === b || "" === d ? c: +d
		}
		function q(c, d, k, f) {
			c = a.mobiscroll.running && Math.min(D, Math.max(c, y));
			m.css("width", 100 * (c - y) / (D - y) + "%");
			k === b && (k = !0);
			f === b && (f = k); (c !== e || d) && u._display(c);
			c !== e && (e = c, k && g.attr("value", e), f && g.change())
		}
		var d, g, O, m, M, w, A, y, D, C, p, e, F, u = this;
		k.classes.Base.call(this, c, j, !0);
		u._onInit = l;
		u._onDestroy = l;
		u._display = function(a) {
			F = p && C.returnAffix ? p.replace(/\{value\}/, a).replace(/\{max\}/, D) : a;
			M && M.html(F);
			d && d.html(F)
		};
		u._attachChange = function() {
			g.on("change", i)
		};
		u.init = function(f) {
			var i, j;
			u._init(f);
			C = u.settings;
			g = a(c);
			O = u._$parent = g.parent();
			y = u._min = f.min === b ? s("min", C.min) : f.min;
			D = u._max = f.max === b ? s("max", C.max) : f.max;
			e = s("value", y);
			i = g.attr("data-val") || C.val;
			j = g.attr("data-step-labels") || C.stepLabels;
			p = g.attr("data-template") || (100 == D && !C.template ? "{value}%": C.template);
			A = u._css + " mbsc-progress-w mbsc-" + C.theme + (C.baseTheme ? " mbsc-" + C.baseTheme: "");
			O.addClass(A);
			u._wrap && k.util.addIcon(g);
			g.attr("min", y).attr("max", D);
			O.find(".mbsc-input-wrap").append('<span class="mbsc-progress-cont"><span class="mbsc-progress-track mbsc-progress-anim"><span class="mbsc-progress-bar"></span></span></span>');
			m = u._$progress = O.find(".mbsc-progress-bar");
			w = u._$track = O.find(".mbsc-progress-track");
			M = a(g.attr("data-target") || C.target);
			i && (d = a('<span class="mbsc-progress-value"></span>'), O.addClass("mbsc-progress-value-" + ("right" == i ? "right": "left")).find(".mbsc-input-wrap").append(d));
			if (j) {
				j = JSON.parse(j);
				for (i = 0; i < j.length; ++i) w.append('<span class="mbsc-progress-step-label" style="left: ' + 100 * (j[i] - y) / (D - y) + '%" >' + j[i] + "</span>")
			}
			u._onInit(f);
			u._attachChange();
			u.refresh();
			u.trigger("onInit", [])
		};
		u.refresh = function() {
			q(s("value", y), !0, !1)
		};
		u.destroy = function() {
			u._onDestroy();
			O.find(".mbsc-progress-cont").remove();
			O.removeClass(A).find(".mbsc-input-wrap").before(g).remove();
			g.removeClass("mbsc-control").off("change", i);
			u._destroy()
		};
		u.getVal = function() {
			return e
		};
		u.setVal = function(a, c, b) {
			q(a, !0, c, b)
		};
		f || u.init(j)
	};
	k.classes.Progress.prototype = {
		_class: "progress",
		_css: "mbsc-progress",
		_hasTheme: !0,
		_wrap: !0,
		_defaults: {
			min: 0,
			max: 100,
			returnAffix: !0
		}
	};
	k.presetShort("progress", "Progress")
})(jQuery); (function(a, b, l, k) {
	var c, j = a.extend,
	f = a.mobiscroll,
	i = f.classes,
	s = f.util,
	q = s.prefix,
	d = s.jsPrefix,
	g = s.has3d,
	O = s.getCoord,
	m = s.testTouch,
	M = s.vibrate,
	w = 1,
	A = function() {},
	y = b.requestAnimationFrame ||
	function(a) {
		a()
	},
	D = b.cancelAnimationFrame || A,
	C = "webkitAnimationEnd animationend",
	p = "transparent";
	i.ListView = function(e, f) {
		function u() {
			Jb = Kb = !1;
			ec = oa = 0;
			fc = new Date;
			bb = ma.width();
			Db = N(ma);
			ra = Db.index(da);
			Ea = da.outerHeight();
			La = da[0].offsetTop;
			Aa = ub[da.attr("data-type") || "defaults"];
			Eb = Aa.stages
		}
		function H(b) {
			"touchstart" === b.type && (Lb = !0, clearTimeout(gc));
			if (m(b, this) && !ka && !hb && !c && !Mb && a.mobiscroll.running && (Ba = ka = !0, Nb = O(b, "X"), Ob = O(b, "Y"), Ga = na = 0, da = a(this), u(), Wb = fa.onItemTap || Aa.tap || da.hasClass("mbsc-lv-parent") || da.hasClass("mbsc-lv-back"), Ma.offset(), pb = da.offset().top, Wb && (sa = setTimeout(function() {
				da.addClass("mbsc-lv-item-active");
				za("onItemActivate", [da, b])
			},
			120)), aa.sortable && !da.hasClass("mbsc-lv-back") && ((aa.sortable.group || (Xb = da.nextUntil(".mbsc-lv-gr-title").filter(".mbsc-lv-item"), Yb = da.prevUntil(".mbsc-lv-gr-title").filter(".mbsc-lv-item")), qb = (!aa.sortable.group ? Yb.length ? Yb.eq( - 1) : da: ma.children("li").eq(0))[0].offsetTop - La, ib = (!aa.sortable.group ? Xb.length ? Xb.eq( - 1) : da: ma.children("li").eq( - 1))[0].offsetTop - La, aa.sortable.handle) ? a(b.target).hasClass("mbsc-lv-handle") && (clearTimeout(sa), "Moz" === d ? (b.preventDefault(), R()) : Pb = setTimeout(function() {
				R()
			},
			100)) : Pb = setTimeout(function() {
				if (fa.fillAnimation) {
					xa.appendTo(da);
					xa[0].style[d + "Animation"] = "mbsc-lv-fill " + (fa.sortDelay - 100) + "ms linear"
				}
				clearTimeout(cb);
				clearTimeout(sa);
				Ba = false;
				Pb = setTimeout(function() {
					xa[0].style[d + "Animation"] = "";
					R()
				},
				fa.sortDelay - 80)
			},
			80)), "mousedown" == b.type)) a(l).on("mousemove", o).on("mouseup", G)
		}
		function o(a) {
			var c = !1,
			b = !0;
			if (ka) if (rb = O(a, "X"), Fb = O(a, "Y"), na = rb - Nb, Ga = Fb - Ob, clearTimeout(cb), !Xa && !jb && !vb && !da.hasClass("mbsc-lv-back") && (10 < Math.abs(Ga) ? (vb = !0, a.type = "mousemove" == a.type ? "mouseup": "touchend", G(a), clearTimeout(sa)) : 7 < Math.abs(na) ? J() : "touchmove" === a.type && (cb = setTimeout(function() {
				a.type = "touchend";
				G(a)
			},
			300))), jb) a.preventDefault(),
			oa = 100 * (na / bb),
			S();
			else if (Xa) {
				a.preventDefault();
				var h, d = Na.scrollTop(),
				Q = Math.max(qb, Math.min(Ga + wb, ib)),
				e = Wa ? pb - hc + d - wb: pb;
				Zb + d < e + Q + Ea ? (Na.scrollTop(e + Q - Zb + Ea), h = !0) : e + Q < d && (Na.scrollTop(e + Q), h = !0);
				h && (h = Wa ? Na.scrollTop() - d: 0, wb += h);
				if (kb && (aa.sortable.multiLevel && va.hasClass("mbsc-lv-parent") ? La + Ea / 4 + Q > kb ? c = !0 : La + Ea - Ea / 4 + Q > kb && (Ia = va.addClass("mbsc-lv-item-hl"), b = !1) : La + Ea / 2 + Q > kb && (va.hasClass("mbsc-lv-back") ? aa.sortable.multiLevel && (pa = va.addClass("mbsc-lv-item-hl"), b = !1) : c = !0), c)) db.insertAfter(va),
				Oa = va,
				va = ha(va, "next"),
				lb = kb,
				kb = va.length && va[0].offsetTop,
				Ca++;
				if (!c && lb && (aa.sortable.multiLevel && Oa.hasClass("mbsc-lv-parent") ? La + Ea - Ea / 4 + Q < lb ? c = !0 : La + Ea / 4 + Q < lb && (Ia = Oa.addClass("mbsc-lv-item-hl"), b = !1) : La + Ea / 2 + Q < lb && (Oa.hasClass("mbsc-lv-back") ? aa.sortable.multiLevel && (pa = Oa.addClass("mbsc-lv-item-hl"), b = !1) : c = !0), c)) db.insertBefore(Oa),
				va = Oa,
				Oa = ha(Oa, "prev"),
				kb = lb,
				lb = Oa.length && Oa[0].offsetTop + Oa.outerHeight(),
				Ca--;
				if (b && (Ia && (Ia.removeClass("mbsc-lv-item-hl"), Ia = !1), pa)) pa.removeClass("mbsc-lv-item-hl"),
				pa = !1;
				c && za("onSortChange", [da, Ca]);
				r(da, Q);
				za("onSort", [da, Ca])
			} else(5 < Math.abs(na) || 5 < Math.abs(Ga)) && U()
		}
		function G(c) {
			var b, d;
			if (ka) {
				ka = !1;
				U();
				"mouseup" == c.type && a(l).off("mousemove", o).off("mouseup", G);
				vb || (gc = setTimeout(function() {
					Lb = !1
				},
				300));
				if (jb || vb || Xa) Jb = !0;
				jb ? K() : Xa ? (b = ma, Ia ? (T(da.detach()), c = eb[Ia.attr("data-ref")], Ca = N(c.child).length, Ia.removeClass("mbsc-lv-item-hl"), fa.navigateOnDrop ? la(Ia,
				function() {
					aa.add(null, da, null, null, Ia, !0);
					t(da);
					h(da, ra, b, !0)
				}) : (aa.add(null, da, null, null, Ia, !0), h(da, ra, b, !0))) : pa ? (T(da.detach()), c = eb[pa.attr("data-back")], Ca = N(c.parent).index(c.item) + 1, pa.removeClass("mbsc-lv-item-hl"), fa.navigateOnDrop ? la(pa,
				function() {
					aa.add(null, da, Ca, null, ma, !0);
					t(da);
					h(da, ra, b, !0)
				}) : (aa.add(null, da, Ca, null, c.parent, !0), h(da, ra, b, !0))) : (c = db[0].offsetTop - La, r(da, c, 6 * Math.abs(c - Math.max(qb, Math.min(Ga + wb, ib))),
				function() {
					T(da);
					da.insertBefore(db);
					h(da, ra, b, Ca !== ra)
				})), Xa = !1) : !vb && 5 > Math.abs(na) && 5 > Math.abs(Ga) && (Aa.tap && (d = Aa.tap.call(Ra, da, ra, c, aa)), Wb && ("touchend" === c.type && s.preventClick(), da.addClass("mbsc-lv-item-active"), za("onItemActivate", [da, c])), d = za("onItemTap", [da, ra, c]), !1 !== d && la(da));
				clearTimeout(sa);
				setTimeout(function() {
					da.removeClass("mbsc-lv-item-active");
					za("onItemDeactivate", [da])
				},
				100);
				vb = !1;
				Ja = null
			}
		}
		function J() {
			if (jb = V(Aa.swipe, [da, ra, 0 < na ? "right": "left", aa])) U(),
			clearTimeout(sa),
			Aa.actions ? (Q = ja(Aa), Pa.html(Aa.icons).show().children().css("width", Q + "%"), Pa.find(".mbsc-lv-multi-ic-right").css("margin-left", 100 - Q + "%"), Fa.hide(), a(".mbsc-lv-ic-m", Da).removeClass("mbsc-lv-ic-disabled"), a(Aa.leftMenu).each(x), a(Aa.rightMenu).each(x)) : (Fa.show(), Pa.hide(), Sa = Aa.start + (0 < na ? 0 : 1), sb = Eb[Sa - 1], tb = Eb[Sa]),
			da.addClass("mbsc-lv-item-swiping").removeClass("mbsc-lv-item-active"),
			Qb.css("line-height", Ea + "px"),
			Da.css({
				top: La,
				height: Ea,
				backgroundColor: (0 < na ? Aa.right: Aa.left).color || p
			}).addClass("mbsc-lv-stage-c-v").appendTo(ma),
			fa.iconSlide && da.append(Fa),
			za("onSlideStart", [da, ra])
		}
		function S() {
			var a = !1;
			if (!Rb) {
				if (Aa.actions) Da.attr("class", "mbsc-lv-stage-c-v mbsc-lv-stage-c mbsc-lv-" + (0 > oa ? "right": "left"));
				else if (sb && oa <= sb.percent ? (Sa--, tb = sb, sb = Eb[Sa], a = !0) : tb && oa >= tb.percent && (Sa++, sb = tb, tb = Eb[Sa], a = !0), a) if (Ja = 0 < oa ? sb: tb) X(Ja, fa.iconSlide),
				za("onStageChange", [da, ra, Ja]);
				xb || (Rb = !0, ic = y(v))
			}
		}
		function K(b) {
			var h, d, e = !1;
			D(ic);
			Rb = !1;
			xb || v();
			if (Aa.actions) 10 < Math.abs(oa) && Q && (W(da, 0 > oa ? -Q: Q, 200), c = e = !0, ia = da, Qa = ra, a(l).on("touchstart.mbsc-lv-conf mousedown.mbsc-lv-conf",
			function(a) {
				a.preventDefault();
				P(da, !0, b)
			}));
			else if (fa.quickSwipe && !xb && (d = new Date - fc, h = 300 > d && -50 > na, d = 300 > d && 50 < na, h ? (Kb = !0, Ja = Aa.left, X(Ja, fa.iconSlide)) : d && (Kb = !0, Ja = Aa.right, X(Ja, fa.iconSlide))), Ja && Ja.action) Ta = V(Ja.disabled, [da, ra, aa]),
			Ta || (e = !0, (c = xb || V(Ja.confirm, [da, ra, aa])) ? (W(da, 100 * (0 > oa ? -1 : 1) * Fa.outerWidth(!0) / bb, 200, !0), n(Ja, da, ra, !1, b)) : L(Ja, da, ra, b));
			e || P(da, !0, b);
			jb = !1
		}
		function R() {
			Xa = !0;
			pa = Ia = !1;
			wb = 0;
			Ca = ra;
			fa.vibrate && M();
			va = ha(da, "next");
			kb = va.length && va[0].offsetTop;
			Oa = ha(da, "prev");
			lb = Oa.length && Oa[0].offsetTop + Oa.outerHeight();
			db.height(Ea).insertAfter(da);
			da.css({
				top: La
			}).addClass("mbsc-lv-item-dragging").removeClass("mbsc-lv-item-active").appendTo(Ua);
			za("onSortStart", [da, Ca])
		}
		function h(a, c, b, d) {
			a.removeClass("mbsc-lv-item-dragging");
			db.remove();
			za("onSortStop", [a, Ca]);
			fa.vibrate && M();
			d && (aa.addUndoAction(function(d) {
				aa.move(a, c, null, d, b, !0)
			},
			!0), za("onSortUpdate", [a, Ca]))
		}
		function B() {
			Lb || (clearTimeout(Gb), c && a(l).trigger("touchstart"), yb && (aa.close(Ha, Ya), yb = !1, Ha = null))
		}
		function x(c, b) {
			V(b.disabled, [da, ra, aa]) && a(".mbsc-ic-" + b.icon, Da).addClass("mbsc-lv-ic-disabled")
		}
		function L(c, b, d, h) {
			var Q, e = {
				icon: "undo2",
				text: fa.undoText,
				color: "#b1b1b1",
				action: function() {
					aa.undo()
				}
			};
			c.undo && (aa.startActionTrack(), a.isFunction(c.undo) && aa.addUndoAction(function() {
				c.undo.call(Ra, b, aa, d)
			}), Sb = b.attr("data-ref"));
			Q = c.action.call(Ra, b, aa, d);
			c.undo ? (aa.endActionTrack(), !1 !== Q && W(b, 0 > +b.attr("data-pos") ? -100 : 100, 200), db.height(Ea).insertAfter(b), b.css("top", La).addClass("mbsc-lv-item-undo"), Pa.hide(), Fa.show(), Da.append(Fa), X(e), n(e, b, d, !0, h)) : P(b, Q, h)
		}
		function n(b, d, h, Q, e) {
			var f, g;
			c = !0;
			a(l).off(".mbsc-lv-conf").on("touchstart.mbsc-lv-conf mousedown.mbsc-lv-conf",
			function(a) {
				a.preventDefault();
				Q && Y(d);
				P(d, !0, e)
			});
			if (!Za) Fa.off(".mbsc-lv-conf").on("touchstart.mbsc-lv-conf mousedown.mbsc-lv-conf",
			function(a) {
				a.stopPropagation();
				f = O(a, "X");
				g = O(a, "Y")
			}).on("touchend.mbsc-lv-conf mouseup.mbsc-lv-conf",
			function(a) {
				a.preventDefault();
				"touchend" === a.type && s.preventClick();
				10 > Math.abs(O(a, "X") - f) && 10 > Math.abs(O(a, "Y") - g) && (L(b, d, h, e), Q && (Tb = null, Y(d)))
			})
		}
		function v() {
			W(da, ec + 100 * na / bb);
			Rb = !1
		}
		function P(b, d, h) {
			a(l).off(".mbsc-lv-conf");
			Fa.off(".mbsc-lv-conf"); ! 1 !== d ? W(b, 0, "0" !== b.attr("data-pos") ? 200 : 0, !1,
			function() {
				E(b, h);
				T(b)
			}) : E(b, h);
			c = !1
		}
		function W(a, c, b, h, Q) {
			c = Math.max("right" == jb ? 0 : -100, Math.min(c, "left" == jb ? 0 : 100));
			$a = a[0].style;
			a.attr("data-pos", c);
			g ? ($a[d + "Transform"] = "translate3d(" + (h ? bb * c / 100 + "px": c + "%") + ",0,0)", $a[d + "Transition"] = q + "transform " + (b || 0) + "ms") : $a.left = c + "%";
			Q && (hb++, setTimeout(function() {
				Q();
				hb--
			},
			b));
			oa = c
		}
		function r(a, c, b, h) {
			c = Math.max(qb, Math.min(c, ib));
			$a = a[0].style;
			g ? ($a[d + "Transform"] = "translate3d(0," + c + "px,0)", $a[d + "Transition"] = q + "transform " + (b || 0) + "ms ease-out") : $a.top = La + c + "px";
			h && (hb++, setTimeout(function() {
				h();
				hb--
			},
			b))
		}
		function U() {
			clearTimeout(Pb); ! Ba && aa.sortable && fa.fillAnimation && (Ba = !0, xa.remove())
		}
		function X(a, c) {
			var b = V(a.text, [da, ra, aa]) || "";
			V(a.disabled, [da, ra, aa]) ? Da.addClass("mbsc-lv-ic-disabled") : Da.removeClass("mbsc-lv-ic-disabled");
			Da.css("background-color", a.color || (0 === a.percent ? (0 < oa ? Aa.right: Aa.left).color || p: p));
			Fa.attr("class", "mbsc-lv-ic-c mbsc-lv-ic-" + (c ? "move-": "") + (0 > oa ? "right": "left"));
			qa.attr("class", " mbsc-lv-ic-s mbsc-lv-ic mbsc-ic mbsc-ic-" + (a.icon || "none"));
			Qb.attr("class", "mbsc-lv-ic-text" + (a.icon ? "": " mbsc-lv-ic-text-only") + (b ? "": " mbsc-lv-ic-only")).html(b || "&nbsp;");
			fa.animateIcons && (Kb ? qa.addClass("mbsc-lv-ic-v") : setTimeout(function() {
				qa.addClass("mbsc-lv-ic-a")
			},
			10))
		}
		function E(a, c) {
			ka || (qa.attr("class", "mbsc-lv-ic-s mbsc-lv-ic mbsc-ic mbsc-ic-none"), Da.attr("style", "").removeClass("mbsc-lv-stage-c-v"), Qb.html(""));
			Da.removeClass("mbsc-lv-left mbsc-lv-right");
			a && (za("onSlideEnd", [a, ra]), c && c())
		}
		function Y(a) {
			a.css("top", "").removeClass("mbsc-lv-item-undo");
			Tb ? aa.animate(db, "collapse",
			function() {
				db.remove()
			}) : db.remove();
			E();
			Tb = Sb = null
		}
		function T(a) {
			$a = a[0].style;
			$a[d + "Transform"] = "";
			$a[d + "Transition"] = "";
			$a.top = "";
			a.removeClass("mbsc-lv-item-swiping")
		}
		function V(c, b) {
			return a.isFunction(c) ? c.apply(this, b) : c
		}
		function ba(c) {
			var b;
			c.attr("data-ref") || (b = w++, c.attr("data-ref", b), eb[b] = {
				item: c,
				child: c.children("ul,ol"),
				parent: c.parent(),
				ref: c.parent()[0] === Ra ? null: c.parent().parent().attr("data-ref")
			});
			c.addClass("mbsc-lv-item");
			aa.sortable.handle && "list-divider" != c.attr("data-role") && !c.children(".mbsc-lv-handle-c").length && c.append(mb);
			if (fa.enhance && !c.hasClass("mbsc-lv-item-enhanced")) {
				b = c.attr("data-icon");
				var d = c.find("img").eq(0).addClass("mbsc-lv-img");
				d.is(":first-child") ? c.addClass("mbsc-lv-img-" + (fa.rtl ? "right": "left")) : d.length && c.addClass("mbsc-lv-img-" + (fa.rtl ? "left": "right"));
				c.addClass("mbsc-lv-item-enhanced").children().each(function(c, b) {
					b = a(b);
					b.is("p, h1, h2, h3, h4, h5, h6") && b.addClass("mbsc-lv-txt")
				});
				b && c.addClass("mbsc-lv-item-ic-" + (c.attr("data-icon-align") || (fa.rtl ? "right": "left"))).append('<div class="mbsc-lv-item-ic mbsc-ic mbsc-ic-' + b + '"></div')
			}
			c.append()
		}
		function Z(c) {
			a("li", c).not(".mbsc-lv-item").each(function() {
				ba(a(this))
			});
			a('li[data-role="list-divider"]', c).removeClass("mbsc-lv-item").addClass("mbsc-lv-gr-title");
			a("ul,ol", c).not(".mbsc-lv").addClass("mbsc-lv").prepend(Ka).parent().addClass("mbsc-lv-parent").prepend(ab);
			a(".mbsc-lv-back", c).each(function() {
				a(this).attr("data-back", a(this).parent().parent().attr("data-ref"))
			})
		}
		function N(a) {
			return a.children("li").not(".mbsc-lv-back").not(".mbsc-lv-removed").not(".mbsc-lv-ph")
		}
		function ea(c) {
			"object" !== typeof c && (c = a('li[data-id="' + c + '"]', ya));
			return c
		}
		function ha(a, c) {
			for (a = a[c](); a.length && (!a.hasClass("mbsc-lv-item") || a.hasClass("mbsc-lv-ph") || a.hasClass("mbsc-lv-item-dragging"));) {
				if (!aa.sortable.group && a.hasClass("mbsc-lv-gr-title")) return ! 1;
				a = a[c]()
			}
			return a
		}
		function ga(a) {
			return s.isNumeric(a) ? a + "": 0
		}
		function ja(a) {
			return + (0 > na ? ga((a.actionsWidth || 0).right) || ga(a.actionsWidth) || ga(fa.actionsWidth.right) || ga(fa.actionsWidth) : ga((a.actionsWidth || 0).left) || ga(a.actionsWidth) || ga(fa.actionsWidth.left) || ga(fa.actionsWidth))
		}
		function t(a) {
			a && Na.scrollTop(Wa ? a.offset().top - Na.offset().top + Na.scrollTop() : a.offset().top)
		}
		function ca(a, c, b, d) {
			var h = c.parent(),
			Q = c.prev(),
			d = d || A;
			Q[0] === Fa[0] && (Q = Fa.prev());
			ma[0] !== c[0] ? (za("onNavStart", [zb, a, c]), $b.prepend(c.addClass("mbsc-lv-v mbsc-lv-sl-new")), t(ya), $($b, "mbsc-lv-sl-" + a,
			function() {
				ma.removeClass("mbsc-lv-sl-curr");
				c.removeClass("mbsc-lv-sl-new").addClass("mbsc-lv-sl-curr");
				nb && nb.length ? ma.removeClass("mbsc-lv-v").insertAfter(nb) : ob.append(ma.removeClass("mbsc-lv-v"));
				nb = Q;
				ob = h;
				ma = c;
				t(b);
				d.call(Ra, b);
				za("onNavEnd", [zb, a, c])
			})) : (t(b), d.call(Ra, b))
		}
		function la(a, c) {
			hb || (a.hasClass("mbsc-lv-parent") ? (zb++, ca("r", eb[a.attr("data-ref")].child, null, c)) : a.hasClass("mbsc-lv-back") && (zb--, ca("l", eb[a.attr("data-back")].parent, eb[a.attr("data-back")].item, c)))
		}
		function $(a, c, b) {
			function d() {
				clearTimeout(h);
				hb--;
				a.off(C, d).removeClass(c);
				b.call(Ra, a)
			}
			var h, b = b || A;
			g && fa.animation && "mbsc-lv-item-none" !== c ? (hb++, a.on(C, d).addClass(c), h = setTimeout(d, 500)) : b.call(Ra, a)
		}
		function I(a, c) {
			var b, d = a.attr("data-ref");
			b = ac[d] = ac[d] || [];
			c && b.push(c);
			a.attr("data-action") || (c = b.shift(), a.attr("data-action", 1), c(function() {
				a.removeAttr("data-action");
				b.length ? I(a) : delete ac[d]
			}))
		}
		function ta(c, b, d) {
			var h, Q;
			c && c.length && (h = 100 / (c.length + 2), a.each(c,
			function(a, e) {
				e.key === k && (e.key = bc++);
				e.percent === k && (e.percent = b * h * (a + 1), d && (Q = j({},
				e), Q.key = bc++, Q.percent = -h * (a + 1), c.push(Q), Ub[Q.key] = Q));
				Ub[e.key] = e
			}))
		}
		var ka, Q, sa, oa, Ba, ia, Qa, ya, Ca, ua, ma, nb, ob, Db, Ja, Sa, Va, Za, Ta, na, Ga, Ia, pa, Xa, Ua, cb, rb, Fb, za, xa, fb, wa, Ab, Bb, Vb, z, Wa, mb, Hb, Ha, yb, Ya, gb, Gb, Ka, ab, qa, Fa, Da, bb, da, Ea, ra, pb, ib, qb, Pa, va, kb, tb, Xb, Jb, Lb, gc, Yb, db, Oa, lb, sb, Kb, ic, Rb, fa, vb, xb, $b, bc, Eb, ec, fc, Nb, Ob, $a, jb, cc, jc, Wb, Qb, Pb, Aa, ub, Sb, Tb, Na, Zb, wb, hc, aa = this,
		Ra = e,
		Ma = a(Ra),
		hb = 0,
		zb = 0,
		La = 0,
		Ub = {},
		ac = {},
		eb = {};
		i.Base.call(this, e, f, !0);
		aa.animate = function(a, c, b) {
			$(a, "mbsc-lv-item-" + c, b)
		};
		aa.add = function(c, b, d, h, Q, e) {
			var f, g, i, B, n, m, j = "",
			x = Q === k ? Ma: ea(Q),
			oa = x,
			p = "object" !== typeof b ? a('<li data-ref="' + w+++'" data-id="' + c + '">' + b + "</li>") : b,
			y = 0 > p.attr("data-pos") ? "left": "right",
			s = p.attr("data-ref"),
			h = h || A;
			s || (s = w++, p.addClass("mbsc-lv-item").attr("data-ref", s));
			ba(p);
			e || aa.addUndoAction(function(a) {
				B ? aa.navigate(x,
				function() {
					oa.remove();
					x.removeClass("mbsc-lv-parent").children(".mbsc-lv-arr").remove();
					n.child = x.children("ul,ol");
					aa.remove(p, null, a, true)
				}) : aa.remove(p, null, a, true)
			},
			!0);
			I(p,
			function(c) {
				T(p.css("top", "").removeClass("mbsc-lv-item-undo"));
				if (x.is("li")) {
					m = x.attr("data-ref");
					if (!x.children("ul,ol").length) {
						B = true;
						x.append("<ul></ul>")
					}
				} else m = x.children(".mbsc-lv-back").attr("data-back");
				if (n = eb[m]) if (n.child.length) oa = n.child;
				else {
					x.addClass("mbsc-lv-parent").prepend(ab);
					oa = x.children("ul,ol").prepend(Ka).addClass("mbsc-lv");
					n.child = oa;
					a(".mbsc-lv-back", x).attr("data-back", m)
				}
				eb[s] = {
					item: p,
					child: p.children("ul,ol"),
					parent: oa,
					ref: m
				};
				i = N(oa);
				g = i.length;
				if (d === k || d === null) d = g;
				e && (j = "mbsc-lv-item-new-" + (e ? y: ""));
				Z(p.addClass(j));
				if (d !== false) if (g) d < g ? p.insertBefore(i.eq(d)) : p.insertAfter(i.eq(g - 1));
				else {
					f = a(".mbsc-lv-back", oa);
					f.length ? p.insertAfter(f) : oa.append(p)
				}
				if (oa.hasClass("mbsc-lv-v")) aa.animate(p.height(p.outerHeight()), e && Sb === s ? "none": "expand",
				function(a) {
					aa.animate(a.height(""), e ? "add-" + y: "pop-in",
					function(a) {
						h.call(Ra, a.removeClass(j));
						c()
					})
				});
				else {
					h.call(Ra, p.removeClass(j));
					c()
				}
				ya.trigger("mbsc-enhance", [{
					theme: fa.theme,
					lang: fa.lang
				}]);
				za("onItemAdd", [p])
			})
		};
		aa.swipe = function(a, c, b, d, h) {
			da = a = ea(a);
			Za = d;
			ka = xb = !0;
			b = b === k ? 300 : b;
			na = 0 < c ? 1 : -1;
			u();
			J();
			W(a, c, b);
			clearTimeout(jc);
			clearInterval(cc);
			cc = setInterval(function() {
				oa = 100 * (s.getPosition(a) / bb);
				S()
			},
			10);
			jc = setTimeout(function() {
				clearInterval(cc);
				oa = c;
				S();
				K(h);
				ka = xb = Za = !1
			},
			b)
		};
		aa.openStage = function(a, c, b, d) {
			Ub[c] && aa.swipe(a, Ub[c].percent, b, d)
		};
		aa.openActions = function(a, c, b, d) {
			var h = ja(ub[a.attr("data-type") || "defaults"]);
			aa.swipe(a, "left" == c ? -h: h, b, d)
		};
		aa.close = function(a, c) {
			aa.swipe(a, 0, c)
		};
		aa.remove = function(a, c, b, d) {
			var h, Q, b = b || A,
			a = ea(a);
			a.length && (Q = a.parent(), h = N(Q).index(a), d || (a.attr("data-ref") === Sb && (Tb = !0), aa.addUndoAction(function(c) {
				aa.add(null, a, h, c, Q, !0)
			},
			!0)), I(a,
			function(h) {
				c = c || a.attr("data-pos") < 0 ? "left": "right";
				if (Q.hasClass("mbsc-lv-v")) aa.animate(a.addClass("mbsc-lv-removed"), d ? "pop-out": "remove-" + c,
				function(a) {
					aa.animate(a.height(a.outerHeight()), "collapse",
					function(a) {
						T(a.height("").removeClass("mbsc-lv-removed").remove());
						b.call(Ra, a);
						h()
					})
				});
				else {
					a.remove();
					b.call(Ra, a);
					h()
				}
				za("onItemRemove", [a])
			}))
		};
		aa.move = function(a, c, b, d, h, Q) {
			a = ea(a);
			Q || aa.startActionTrack();
			Da.append(Fa);
			aa.remove(a, b, null, Q);
			aa.add(null, a, c, d, h, Q);
			Q || aa.endActionTrack()
		};
		aa.navigate = function(a, c) {
			var b, d, a = ea(a);
			b = eb[a.attr("data-ref")];
			d = 0;
			for (var h = eb[a.attr("data-ref")]; h.ref;) d++,
			h = eb[h.ref];
			b && (ca(d >= zb ? "r": "l", b.parent, a, c), zb = d)
		};
		aa.init = function(d) {
			var h = Ma.find("ul,ol").length ? "left": "right",
			Q = 0,
			e = "",
			f = "",
			i = "";
			aa._init(d);
			d = fa.sort || fa.sortable;
			"group" === d && (d = {
				group: !1,
				multiLevel: !0
			}); ! 0 === d && (d = {
				group: !0,
				multiLevel: !0,
				handle: fa.sortHandle
			});
			d && d.handle === k && (d.handle = fa.sortHandle);
			aa.sortable = d || !1;
			e += '<div class="mbsc-lv-multi-c"></div><div class="mbsc-lv-ic-c"><div class="mbsc-lv-ic-s mbsc-lv-ic mbsc-ic mbsc-ic-none"></div><div class="mbsc-lv-ic-text"></div></div>';
			Ma.addClass("mbsc-lv mbsc-lv-v mbsc-lv-root").show();
			Da = a('<div class="mbsc-lv-stage-c">' + e + "</div>");
			Fa = a(".mbsc-lv-ic-c", Da);
			Pa = a(".mbsc-lv-multi-c", Da);
			qa = a(".mbsc-lv-ic-s", Da);
			Qb = a(".mbsc-lv-ic-text", Da);
			db = a('<li class="mbsc-lv-item mbsc-lv-ph"></li>');
			xa = a('<div class="mbsc-lv-fill-item"></div>');
			ya = a('<div class="mbsc-lv-cont mbsc-lv-' + fa.theme + (fa.baseTheme ? " mbsc-lv-" + fa.baseTheme: "") + (fa.animateIcons ? " mbsc-lv-ic-anim": "") + (g ? "": " mbsc-lv-no3d") + (fa.altRow ? " mbsc-lv-alt-row ": "") + '"><ul class="mbsc-lv mbsc-lv-dummy"></ul><div class="mbsc-lv-sl-c"></div></div>');
			Wa = "body" !== fa.context;
			Na = a(Wa ? fa.context: b);
			Ua = a(".mbsc-lv-dummy", ya);
			ya.insertAfter(Ma);
			aa.sortable.handle && (z = !0 === aa.sortable.handle ? h: aa.sortable.handle, mb = '<div class="mbsc-lv-handle-c mbsc-lv-item-h-' + z + ' mbsc-lv-handle"><div class="' + fa.handleClass + ' mbsc-lv-handle-bar-c mbsc-lv-handle">' + fa.handleMarkup + "</div></div>", ya.addClass("mbsc-lv-handle-" + z));
			Na.on("orientationchange.mbsc-lv resize.mbsc-lv",
			function() {
				clearTimeout(Va);
				Va = setTimeout(function() {
					Zb = Na[0].innerHeight || Na.innerHeight();
					hc = Wa ? Na.offset().top: 0;
					if (ka) {
						La = da[0].offsetTop;
						Ea = da.outerHeight();
						Da.css({
							top: La,
							height: Ea
						})
					}
				},
				200)
			}).trigger("resize.mbsc-lv");
			ya.on("touchstart mousedown", ".mbsc-lv-item", H).on("touchmove", ".mbsc-lv-item", o).on("touchend touchcancel", ".mbsc-lv-item", G);
			Ra.addEventListener && Ra.addEventListener("click",
			function(a) {
				if (Jb) {
					a.stopPropagation();
					a.preventDefault();
					Jb = false
				}
			},
			!0);
			ya.on("touchstart mousedown", ".mbsc-lv-ic-m",
			function(a) {
				if (!Za) {
					a.stopPropagation();
					a.preventDefault()
				}
				Nb = O(a, "X");
				Ob = O(a, "Y")
			}).on("touchend mouseup", ".mbsc-lv-ic-m",
			function(b) {
				if (!Za) {
					b.type === "touchend" && s.preventClick();
					c && !a(this).hasClass("mbsc-lv-ic-disabled") && Math.abs(O(b, "X") - Nb) < 10 && Math.abs(O(b, "Y") - Ob) < 10 && L((oa < 0 ? Aa.rightMenu: Aa.leftMenu)[a(this).index()], ia, Qa)
				}
			});
			$b = a(".mbsc-lv-sl-c", ya).append(Ma.addClass("mbsc-lv-sl-curr")).attr("data-ref", w++);
			ma = Ma;
			ob = ya;
			Ka = '<li class="mbsc-lv-item mbsc-lv-back">' + fa.backText + '<div class="mbsc-lv-arr mbsc-lv-ic mbsc-ic ' + fa.leftArrowClass + '"></div></li>';
			ab = '<div class="mbsc-lv-arr mbsc-lv-ic mbsc-ic ' + fa.rightArrowClass + '"></div>';
			Z(Ma);
			bc = 0;
			ub = fa.itemGroups || {};
			ub.defaults = {
				swipeleft: fa.swipeleft,
				swiperight: fa.swiperight,
				stages: fa.stages,
				actions: fa.actions,
				actionsWidth: fa.actionsWidth
			};
			a.each(ub,
			function(c, b) {
				b.swipe = b.swipe || fa.swipe;
				b.stages = b.stages || [];
				ta(b.stages, 1, true);
				ta(b.stages.left, 1);
				ta(b.stages.right, -1);
				if (b.stages.left || b.stages.right) b.stages = [].concat(b.stages.left || [], b.stages.right || []);
				fb = false;
				if (!b.stages.length) {
					b.swipeleft && b.stages.push({
						percent: -30,
						action: b.swipeleft
					});
					b.swiperight && b.stages.push({
						percent: 30,
						action: b.swiperight
					})
				}
				a.each(b.stages,
				function(a, b) {
					if (b.percent === 0) {
						fb = true;
						return false
					}
				});
				fb || b.stages.push({
					percent: 0
				});
				b.stages.sort(function(a, b) {
					return a.percent - b.percent
				});
				a.each(b.stages,
				function(a, c) {
					if (c.percent === 0) {
						b.start = a;
						return false
					}
				});
				if (fb) b.left = b.right = b.stages[b.start];
				else {
					b.left = b.stages[b.start - 1] || {};
					b.right = b.stages[b.start + 1] || {}
				}
				if (b.actions) {
					b.leftMenu = b.actions.left || b.actions;
					b.rightMenu = b.actions.right || b.leftMenu;
					i = f = "";
					for (Q = 0; Q < b.leftMenu.length; Q++) f = f + ('<div class="mbsc-lv-ic-m mbsc-lv-ic mbsc-ic mbsc-ic-' + b.leftMenu[Q].icon + '"></div>');
					for (Q = 0; Q < b.rightMenu.length; ++Q) i = i + ('<div class="mbsc-lv-ic-m mbsc-lv-ic mbsc-ic mbsc-ic-' + b.rightMenu[Q].icon + '"></div>');
					if (b.actions.left) b.swipe = b.actions.right ? b.swipe: "right";
					if (b.actions.right) b.swipe = b.actions.left ? b.swipe: "left";
					b.icons = '<div class="mbsc-lv-multi mbsc-lv-multi-ic-left">' + f + '</div><div class="mbsc-lv-multi mbsc-lv-multi-ic-right">' + i + "</div>"
				}
			});
			fa.fixedHeader && (wa = a('<div class="mbsc-lv-fixed-header"></div>'), Ab = a(".mbsc-lv-gr-title", Ma), Wa ? (Na.before(wa), wa.addClass("mbsc-lv-fixed-header-ctx mbsc-lv-" + fa.theme + (fa.baseTheme ? " mbsc-lv-" + fa.baseTheme: ""))) : ya.prepend(wa), Na.on("scroll.mbsc-lv touchmove.mbsc-lv",
			function() {
				if (Xa || !ka) {
					var b = a(this).scrollTop(),
					c = Ma.offset().top;
					Ab.each(function(d, h) {
						if (a(h).offset().top - (Wa ? c: 0) < b) Bb = d
					});
					ua = Ab[Bb];
					c < (Wa ? Na.offset().top: b) && b < (Wa ? Ma[0].scrollHeight: c + Ma.height()) ? wa.empty().append(a(ua).clone()).show() : wa.hide()
				}
			}));
			fa.rtl && ya.addClass("mbsc-lv-rtl");
			fa.hover && (Ya = fa.hover.time || 200, gb = fa.hover.timeout || 200, Hb = fa.hover.direction || fa.hover || "right", ya.on("mouseenter.mbsc-lv", ".mbsc-lv-item",
			function() {
				if (!Ha || Ha[0] != this) {
					B();
					Ha = a(this);
					if (ub[Ha.attr("data-type") || "defaults"].actions) Gb = setTimeout(function() {
						if (Lb) Ha = null;
						else {
							yb = true;
							aa.openActions(Ha, Hb, Ya, false)
						}
					},
					gb)
				}
			}).on("mouseleave.mbsc-lv", B));
			Ma.is("[mbsc-enhance]") && (Vb = !0, Ma.removeAttr("mbsc-enhance"), ya.attr("mbsc-enhance", ""));
			ya.trigger("mbsc-enhance", [{
				theme: fa.theme,
				lang: fa.lang
			}]);
			za("onInit", [])
		};
		aa.destroy = function() {
			ob.append(ma);
			Wa && wa && wa.remove();
			Vb && Ma.attr("mbsc-enhance", "");
			ya.find(".mbsc-lv-txt,.mbsc-lv-img").removeClass("mbsc-lv-txt mbsc-lv-img");
			ya.find("ul,ol").removeClass("mbsc-lv mbsc-lv-v mbsc-lv-root mbsc-lv-sl-curr").find("li").removeClass("mbsc-lv-gr-title mbsc-lv-item mbsc-lv-item-enhanced mbsc-lv-parent mbsc-lv-img-left mbsc-lv-img-right mbsc-lv-item-ic-left mbsc-lv-item-ic-right").removeAttr("data-ref");
			a(".mbsc-lv-back,.mbsc-lv-handle-c,.mbsc-lv-arr,.mbsc-lv-item-ic", ya).remove();
			Ma.insertAfter(ya);
			ya.off().remove();
			Da.remove();
			Na.off(".mbsc-lv");
			aa._destroy()
		};
		var Mb, kc = [],
		Cb = [],
		dc = [],
		Ib = 0;
		aa.startActionTrack = function() {
			Ib || (dc = []);
			Ib++
		};
		aa.endActionTrack = function() {
			Ib--;
			Ib || Cb.push(dc)
		};
		aa.addUndoAction = function(a, b) {
			var c = {
				action: a,
				async: b
			};
			Ib ? dc.push(c) : (Cb.push([c]), Cb.length > fa.undoLimit && Cb.shift())
		};
		aa.undo = function() {
			function a() {
				0 > d ? (Mb = !1, b()) : (c = h[d], d--, c.async ? c.action(a) : (c.action(), a()))
			}
			function b() {
				if (h = kc.shift()) Mb = !0,
				d = h.length - 1,
				a()
			}
			var c, d, h;
			Cb.length && kc.push(Cb.pop());
			Mb || b()
		};
		fa = aa.settings;
		za = aa.trigger;
		aa.init(f)
	};
	i.ListView.prototype = {
		_class: "listview",
		_hasDef: !0,
		_hasTheme: !0,
		_hasLang: !0,
		_defaults: {
			actionsWidth: 90,
			sortDelay: 250,
			undoLimit: 10,
			swipe: !0,
			quickSwipe: !0,
			animateIcons: !0,
			fillAnimation: !0,
			animation: !0,
			revert: !0,
			handleClass: "",
			handleMarkup: '<div class="mbsc-lv-handle-bar mbsc-lv-handle"></div><div class="mbsc-lv-handle-bar mbsc-lv-handle"></div><div class="mbsc-lv-handle-bar mbsc-lv-handle"></div>',
			leftArrowClass: "mbsc-ic-arrow-left4",
			rightArrowClass: "mbsc-ic-arrow-right4",
			backText: "Back",
			undoText: "Undo",
			stages: []
		}
	};
	f.themes.listview.mobiscroll = {
		leftArrowClass: "mbsc-ic-arrow-left5",
		rightArrowClass: "mbsc-ic-arrow-right5"
	};
	f.presetShort("listview", "ListView")
})(jQuery, window, document); (function(a) {
	var b = a.mobiscroll.themes.listview,
	l = {
		onThemeLoad: function(a, b) {
			b.theme && (b.theme = b.theme.replace("android-ics", "android-holo").replace(" light", "-light"))
		},
		onInit: function() {
			a(this).closest(".mbsc-lv-cont").addClass("mbsc-lv-android-holo")
		}
	};
	b["android-holo"] = l;
	b["android-holo-light"] = l;
	b["android-ics"] = l;
	b["android-ics light"] = l;
	b["android-holo light"] = l
})(jQuery); (function(a) {
	var b = a.mobiscroll.themes.listview,
	l = {
		onThemeLoad: function(a, b) {
			b.theme && (b.theme = b.theme.replace(" light", "-light"))
		},
		onInit: function() {
			a(this).closest(".mbsc-lv-cont").addClass("mbsc-lv-wp")
		}
	};
	b.wp = l;
	b["wp-light"] = l;
	b["wp light"] = l
})(jQuery); (function(a) {
	var b = {
		onInit: function() {
			a(this).closest(".mbsc-lv-cont").addClass("mbsc-lv-sense")
		},
		onThemeLoad: function(a, b) {
			b.theme && (b.theme = b.theme.replace("sense5", "sense"))
		}
	};
	a.mobiscroll.themes.listview.sense = b;
	a.mobiscroll.themes.listview["sense-dark"] = b;
	a.mobiscroll.themes.listview.sense5 = b;
	a.mobiscroll.themes.listview["sense5-dark"] = b
})(jQuery); (function(a) {
	a.mobiscroll.themes.listview.material = {
		leftArrowClass: "mbsc-ic-material-keyboard-arrow-left",
		rightArrowClass: "mbsc-ic-material-keyboard-arrow-right",
		onItemActivate: function(b, l) {
			a.mobiscroll.themes.material.addRipple(b, l)
		},
		onItemDeactivate: function() {
			a.mobiscroll.themes.material.removeRipple()
		},
		onSlideStart: function(b) {
			a(".mbsc-ripple", b).remove()
		},
		onSortStart: function(b) {
			a(".mbsc-ripple", b).remove()
		}
	}
})(jQuery); (function(a) {
	a.mobiscroll.themes.listview.jqm = {
		handleClass: "ui-btn ui-icon-bars ui-btn-up-c ui-btn-icon-notext ui-icon-shadow ui-corner-all ui-btn-corner-all",
		handleMarkup: '<span class="ui-btn-inner mbsc-lv-handle"><span class="ui-icon ui-icon-bars ui-icon-shadow mbsc-lv-handle">&nbsp;</span></span>',
		leftArrowClass: "ui-btn-icon-left ui-icon-carat-l",
		rightArrowClass: "ui-btn-icon-right ui-icon-carat-r",
		onInit: function() {
			a(this).closest(".mbsc-lv-cont").addClass(a(this).data("inset") ? "mbsc-lv-jqm-inset": "").find(".mbsc-lv-dummy, .mbsc-lv-fixed-header").addClass("ui-listview");
			a("ul,ol", this).listview("refresh")
		},
		onItemAdd: function(a) {
			a = a.parent();
			a.hasClass("ui-listview") ? a.listview("refresh") : a.listview()
		},
		onSortUpdate: function(a) {
			a.parent().listview("refresh")
		}
	}
})(jQuery); (function(a) {
	a.mobiscroll.themes.listview["ios-classic"] = {}
})(jQuery); (function(a) {
	a.mobiscroll.themes.listview.android = {}
})(jQuery); (function(a) {
	a.mobiscroll.themes.listview["sense-ui"] = {}
})(jQuery); (function(a) {
	var a = a.mobiscroll.themes.listview,
	b = {
		onThemeLoad: function(a, b) {
			b.theme && (b.theme = b.theme.replace("ios7", "ios"))
		}
	};
	a.ios = b;
	a.ios7 = b
})(jQuery); (function(a, b) {
	var l = function() {},
	k = a.mobiscroll,
	c = k.util,
	j = c.getCoord,
	f = c.testTouch;
	k.classes.Slider = function(i, s, q) {
		function d(b) {
			f(b, this) && !B && !i.disabled && a.mobiscroll.running && (ea.stopProp && b.stopPropagation(), B = !0, x = ba = !1, ga = j(b, "X"), ja = j(b, "Y"), P = ga, h.removeClass("mbsc-progress-anim"), H = Z ? a(".mbsc-slider-handle", this) : G, o = H.parent().addClass("mbsc-active"), r = +H.attr("data-index"), la = h.outerWidth(), v = h.offset().left, "mousedown" === b.type && (b.preventDefault(), a(document).on("mousemove", g).on("mouseup", O)))
		}
		function g(a) {
			if (B) {
				P = j(a, "X");
				W = j(a, "Y");
				L = P - ga;
				n = W - ja;
				if (5 < Math.abs(L) || ba) ba = !0,
				50 < Math.abs(ta - new Date) && (ta = new Date, p(P, ea.round, Y));
				ba ? a.preventDefault() : 7 < Math.abs(n) && C(a)
			}
		}
		function O(a) {
			B && (a.preventDefault(), Z || h.addClass("mbsc-progress-anim"), p(P, !0, !0), !ba && !x && (c.preventClick(), I._onTap($[r])), C())
		}
		function m() {
			B && C()
		}
		function M() {
			var b = I._readValue(a(this)),
			c = +a(this).attr("data-index");
			b !== $[c] && ($[c] = b, F(b, c))
		}
		function w(a) {
			a.stopPropagation()
		}
		function A(a) {
			a.preventDefault()
		}
		function y(b) {
			var c;
			if (!i.disabled) {
				switch (b.keyCode) {
				case 38:
				case 39:
					c = 1;
					break;
				case 40:
				case 37:
					c = -1
				}
				c && (b.preventDefault(), ca || (r = +a(this).attr("data-index"), F($[r] + N * c, r, !0), ca = setInterval(function() {
					F($[r] + N * c, r, !0)
				},
				200)))
			}
		}
		function D(a) {
			a.preventDefault();
			clearInterval(ca);
			ca = null
		}
		function C() {
			B = !1;
			o.removeClass("mbsc-active");
			a(document).off("mousemove", g).off("mouseup", O)
		}
		function p(a, b, c) {
			a = b ? Math.min(100 * Math.round(Math.max(100 * (a - v) / la, 0) / ha / N) * N / (T - V), 100) : Math.max(0, Math.min(100 * (a - v) / la, 100));
			F(Math.round((V + a / ha) * t) / t, r, c, a)
		}
		function e(a) {
			return 100 * (a - V) / (T - V)
		}
		function F(a, c, d, h, f, g) {
			var i = G.eq(c),
			B = i.parent(),
			a = Math.min(T, Math.max(a, V));
			g === b && (g = d);
			E ? 0 === c ? (a = Math.min(a, $[1]), K.css({
				width: e($[1]) - e(a) + "%",
				left: e(a) + "%"
			})) : (a = Math.max(a, $[0]), K.css({
				width: e(a) - e($[0]) + "%"
			})) : Z || !U ? B.css({
				left: (h || e(a)) + "%",
				right: "auto"
			}) : K.css("width", (h || e(a)) + "%");
			X && R.eq(c).html(a);
			a > V ? B.removeClass("mbsc-slider-start") : ($[c] > V || f) && B.addClass("mbsc-slider-start"); ! Z && ($[c] != a || f) && I._display(a);
			d && $[c] != a && (x = !0, $[c] = a, I._fillValue(a, c, g));
			i.attr("aria-valuenow", a)
		}
		var u, H, o, G, J, S, K, R, h, B, x, L, n, v, P, W, r, U, X, E, Y, T, V, ba, Z, N, ea, ha, ga, ja, t, ca, la, $, I = this,
		ta = new Date;
		k.classes.Progress.call(this, i, s, !0);
		I._onTap = l;
		I.__onInit = l;
		I._readValue = function(a) {
			return + a.val()
		};
		I._fillValue = function(a, b, c) {
			u.eq(b).val(a);
			c && u.eq(b).change()
		};
		I._attachChange = function() {
			u.on(ea.changeEvent, M)
		};
		I._onInit = function(c) {
			var Q;
			I.__onInit();
			S = I._$parent;
			h = I._$track;
			K = I._$progress;
			u = S.find("input");
			ea = I.settings;
			V = I._min;
			T = I._max;
			N = c.step === b ? +u.attr("step") || ea.step: c.step;
			Y = "true" === u.attr("data-live") || ea.live;
			X = "true" === u.attr("data-tooltip") || ea.tooltip;
			U = "false" !== u.attr("data-highlight") && !1 !== ea.highlight && 3 > u.length;
			t = 0 !== N % 1 ? 100 / (100 * +(N % 1).toFixed(2)) : 1;
			ha = 100 / (T - V) || 100;
			Z = 1 < u.length;
			E = U && 2 == u.length;
			$ = [];
			X && S.addClass("mbsc-slider-has-tooltip");
			if (1 != N) {
				Q = (T - V) / N;
				for (c = 0; c <= Q; ++c) h.append('<span class="mbsc-slider-step" style="left:' + 100 / Q * c + '%"></span>')
			}
			a.each(u,
			function(b) {
				$[b] = I._readValue(a(this));
				a(this).attr("data-index", b).attr("min", V).attr("max", T).attr("step", N);
				ea.handle && (U ? K: h).append('<span class="mbsc-slider-handle-cont' + (E && !b ? " mbsc-slider-handle-left": "") + '"><span tabindex="0" class="mbsc-slider-handle" aria-valuemin="' + V + '" aria-valuemax="' + T + '" data-index="' + b + '"></span>' + (X ? '<span class="mbsc-slider-tooltip"></span>': "") + "</span>")
			});
			G = S.find(".mbsc-slider-handle");
			R = S.find(".mbsc-slider-tooltip");
			J = S.find(Z ? ".mbsc-slider-handle-cont": ".mbsc-progress-cont");
			G.on("keydown", y).on("keyup", D).on("blur", D);
			J.on("touchstart mousedown", d).on("touchmove", g).on("touchend touchcancel", O).on("pointercancel", m);
			u.on("click", w);
			S.on("click", A)
		};
		I._onDestroy = function() {
			S.off("click", A);
			u.off(ea.changeEvent, M).off("click", w);
			G.off("keydown", y).off("keyup", D).off("blur", D);
			J.off("touchstart mousedown", d).off("touchmove", g).off("touchend", O).off("touchcancel pointercancel", m)
		};
		I.refresh = function() {
			u.each(function(b) {
				F(I._readValue(a(this)), b, !0, !1, !0, !1)
			})
		};
		I.getVal = function() {
			return Z ? $.slice(0) : $[0]
		};
		I.setVal = I._setVal = function(b, c, d) {
			a.isArray(b) || (b = [b]);
			a.each(b,
			function(a, b) {
				F(b, a, !0, !1, !0, d)
			})
		};
		q || I.init(s)
	};
	k.classes.Slider.prototype = {
		_class: "progress",
		_css: "mbsc-progress mbsc-slider",
		_hasTheme: !0,
		_wrap: !0,
		_defaults: {
			changeEvent: "change",
			stopProp: !0,
			min: 0,
			max: 100,
			step: 1,
			live: !0,
			handle: !0,
			round: !0,
			returnAffix: !0
		}
	};
	k.presetShort("slider", "Slider")
})(jQuery); (function(a, b, l, k) {
	var c, j, f = a.mobiscroll,
	i = f.util,
	s = i.jsPrefix,
	q = i.has3d,
	d = i.constrain,
	g = i.isString,
	O = i.isOldAndroid,
	i = /(iphone|ipod|ipad).* os 8_/i.test(navigator.userAgent),
	m = function() {},
	M = function(a) {
		a.preventDefault()
	};
	f.classes.Frame = function(i, A, y) {
		function D(b) {
			r && r.removeClass("dwb-a");
			r = a(this); ! r.hasClass("dwb-d") && !r.hasClass("dwb-nhl") && r.addClass("dwb-a");
			if ("mousedown" === b.type) a(l).on("mouseup", C);
			else if ("pointerdown" === b.type) a(l).on("pointerup", C)
		}
		function C(b) {
			r && (r.removeClass("dwb-a"), r = null);
			"mouseup" === b.type ? a(l).off("mouseup", C) : "pointerup" === b.type && a(l).off("pointerup", C)
		}
		function p(a) {
			13 == a.keyCode ? t.select() : 27 == a.keyCode && t.cancel()
		}
		function e(b) {
			var d, h, e, f = N.focusOnClose;
			t._markupRemove();
			B.remove();
			c && !b && setTimeout(function() {
				if (f === k || !0 === f) {
					j = !0;
					d = c[0];
					e = d.type;
					h = d.value;
					try {
						d.type = "button"
					} catch(b) {}
					c.focus();
					d.type = e;
					d.value = h
				} else f && a(f).focus()
			},
			200);
			t._isVisible = !1;
			X("onHide", [])
		}
		function F(a) {
			clearTimeout($[a.type]);
			$[a.type] = setTimeout(function() {
				var b = "scroll" == a.type; (!b || ea) && t.position(!b)
			},
			200)
		}
		function u(a) {
			a.target.nodeType && !n[0].contains(a.target) && n.focus()
		}
		function H() {
			a(this).off("blur", H);
			setTimeout(function() {
				t.position()
			},
			100)
		}
		function o(b, d) {
			b && b();
			a(l.activeElement).is("input,textarea") && a(l.activeElement).blur(); ! 1 !== t.show() && (c = d, setTimeout(function() {
				j = !1
			},
			300))
		}
		function G() {
			t._fillValue();
			X("onSelect", [t._value])
		}
		function J() {
			X("onCancel", [t._value])
		}
		function S() {
			t.setVal(null, !0)
		}
		var K, R, h, B, x, L, n, v, P, W, r, U, X, E, Y, T, V, ba, Z, N, ea, ha, ga, ja, t = this,
		ca = a(i),
		la = [],
		$ = {};
		f.classes.Base.call(this, i, A, !0);
		t.position = function(b) {
			var c, h, e, f, g, i, m, x, p, j, y = 0,
			s = 0;
			p = {};
			var E = Math.min(v[0].innerWidth || v.innerWidth(), L.width()),
			r = v[0].innerHeight || v.innerHeight();
			g = a(l.activeElement);
			if (g.is("input,textarea") && !/(button|submit|checkbox|radio)/.test(g.attr("type"))) g.on("blur", H);
			else if (! (ga === E && ja === r && b || Z)) if ((t._isFullScreen || /top|bottom/.test(N.display)) && n.width(E), !1 !== X("onPosition", [B, E, r]) && Y) {
				h = v.scrollLeft();
				b = v.scrollTop();
				f = N.anchor === k ? ca: a(N.anchor);
				t._isLiquid && "liquid" !== N.layout && (400 > E ? B.addClass("dw-liq") : B.removeClass("dw-liq")); ! t._isFullScreen && /modal|bubble/.test(N.display) && (P.width(""), a(".mbsc-w-p", B).each(function() {
					c = a(this).outerWidth(!0);
					y += c;
					s = c > s ? c: s
				}), c = y > E ? s: y, P.width(c + 1).css("white-space", y > E ? "": "nowrap"));
				T = n.outerWidth();
				V = n.outerHeight(!0);
				ea = V <= r && T <= E; (t.scrollLock = ea) ? R.addClass("mbsc-fr-lock") : R.removeClass("mbsc-fr-lock");
				"modal" == N.display ? (h = Math.max(0, h + (E - T) / 2), e = b + (r - V) / 2) : "bubble" == N.display ? (j = ga !== E, x = a(".dw-arrw-i", B), e = f.offset(), i = Math.abs(R.offset().top - e.top), m = Math.abs(R.offset().left - e.left), g = f.outerWidth(), f = f.outerHeight(), h = d(m - (n.outerWidth(!0) - g) / 2, h + 3, h + E - T - 3), e = i - V, e < b || i > b + r ? (n.removeClass("dw-bubble-top").addClass("dw-bubble-bottom"), e = i + f) : n.removeClass("dw-bubble-bottom").addClass("dw-bubble-top"), x = x.outerWidth(), g = d(m + g / 2 - (h + (T - x) / 2), 0, x), a(".dw-arr", B).css({
					left: g
				})) : "top" == N.display ? e = b: "bottom" == N.display && (e = b + r - V);
				e = 0 > e ? 0 : e;
				p.top = e;
				p.left = h;
				n.css(p);
				L.height(0);
				p = Math.max(e + V, "body" == N.context ? a(l).height() : R[0].scrollHeight);
				L.css({
					height: p
				});
				if (j && (e + V > b + r || i > b + r)) Z = !0,
				setTimeout(function() {
					Z = false
				},
				300),
				v.scrollTop(Math.min(i, e + V - r, p - r));
				ga = E;
				ja = r;
				a(".mbsc-comp", B).each(function() {
					var b = a(this).mobiscroll("getInst");
					b !== t && b.position && b.position()
				})
			}
		};
		t.attachShow = function(a, b) {
			la.push({
				readOnly: a.prop("readonly"),
				el: a
			});
			if ("inline" !== N.display) {
				if (ha && a.is("input")) a.prop("readonly", !0).on("mousedown.dw",
				function(a) {
					a.preventDefault()
				});
				if (N.showOnFocus) a.on("focus.dw",
				function() {
					j || o(b, a)
				});
				N.showOnTap && (a.on("keydown.dw",
				function(c) {
					if (32 == c.keyCode || 13 == c.keyCode) c.preventDefault(),
					c.stopPropagation(),
					o(b, a)
				}), t.tap(a,
				function() {
					o(b, a)
				}))
			}
		};
		t.select = function() {
			Y ? t.hide(!1, "set", !1, G) : G()
		};
		t.cancel = function() {
			Y ? t.hide(!1, "cancel", !1, J) : G()
		};
		t.clear = function() {
			X("onClear", [B]);
			Y && t._isVisible && !t.live ? t.hide(!1, "clear", !1, S) : S()
		};
		t.enable = function() {
			N.disabled = !1;
			t._isInput && ca.prop("disabled", !1)
		};
		t.disable = function() {
			N.disabled = !0;
			t._isInput && ca.prop("disabled", !0)
		};
		t.show = function(c, d) {
			var e;
			if (!N.disabled && !t._isVisible) {
				t._readValue();
				if (!1 === X("onBeforeShow", [])) return ! 1;
				U = O ? !1 : N.animate; ! 1 !== U && ("top" == N.display && (U = "slidedown"), "bottom" == N.display && (U = "slideup"));
				e = '<div lang="' + N.lang + '" class="mbsc-' + N.theme + (N.baseTheme ? " mbsc-" + N.baseTheme: "") + " dw-" + N.display + " " + (N.cssClass || "") + (t._isLiquid ? " dw-liq": "") + (O ? " mbsc-old": "") + (E ? "": " dw-nobtn") + '"><div class="dw-persp">' + (Y ? '<div class="dwo"></div>': "") + "<div" + (Y ? ' role="dialog" tabindex="-1"': "") + ' class="dw' + (N.rtl ? " dw-rtl": " dw-ltr") + '">' + ("bubble" === N.display ? '<div class="dw-arrw"><div class="dw-arrw-i"><div class="dw-arr"></div></div></div>': "") + '<div class="dwwr"><div aria-live="assertive" class="dw-aria dw-hidden"></div>' + (N.headerText ? '<div class="dwv">' + (g(N.headerText) ? N.headerText: "") + "</div>": "") + '<div class="dwcc">';
				e += t._generateContent();
				e += "</div>";
				E && (e += '<div class="dwbc">', a.each(W,
				function(a, b) {
					b = g(b) ? t.buttons[b] : b;
					if (b.handler === "set") b.parentClass = "dwb-s";
					if (b.handler === "cancel") b.parentClass = "dwb-c";
					e = e + ("<div" + (N.btnWidth ? ' style="width:' + 100 / W.length + '%"': "") + ' class="dwbw ' + (b.parentClass || "") + '"><div tabindex="0" role="button" class="dwb' + a + " dwb-e " + (b.cssClass === k ? N.btnClass: b.cssClass) + (b.icon ? " mbsc-ic mbsc-ic-" + b.icon: "") + '">' + (b.text || "") + "</div></div>")
				}), e += "</div>");
				e += "</div></div></div></div>";
				B = a(e);
				L = a(".dw-persp", B);
				x = a(".dwo", B);
				P = a(".dwwr", B);
				h = a(".dwv", B);
				n = a(".dw", B);
				K = a(".dw-aria", B);
				t._markup = B;
				t._header = h;
				t._isVisible = !0;
				ba = "orientationchange resize";
				t._markupReady(B);
				X("onMarkupReady", [B]);
				if (Y) {
					a(b).on("keydown", p);
					if (N.scrollLock) B.on("touchmove mousewheel wheel",
					function(a) {
						ea && a.preventDefault()
					});
					"Moz" !== s && a("input,select,button", R).each(function() {
						this.disabled || a(this).addClass("dwtd").prop("disabled", true)
					});
					f.activeInstance && f.activeInstance.hide();
					ba += " scroll";
					f.activeInstance = t;
					B.appendTo(R);
					if (N.focusTrap) v.on("focusin", u);
					q && U && !c && B.addClass("dw-in dw-trans").on("webkitAnimationEnd animationend",
					function() {
						B.off("webkitAnimationEnd animationend").removeClass("dw-in dw-trans").find(".dw").removeClass("dw-" + U);
						d || n.focus();
						t.ariaMessage(N.ariaMessage)
					}).find(".dw").addClass("dw-" + U)
				} else ca.is("div") && !t._hasContent ? ca.html(B) : B.insertAfter(ca);
				t._markupInserted(B);
				X("onMarkupInserted", [B]);
				t.position();
				v.on(ba, F);
				B.on("selectstart mousedown", M).on("click", ".dwb-e", M).on("keydown", ".dwb-e",
				function(b) {
					if (b.keyCode == 32) {
						b.preventDefault();
						b.stopPropagation();
						a(this).click()
					}
				}).on("keydown",
				function(b) {
					if (b.keyCode == 32) b.preventDefault();
					else if (b.keyCode == 9 && Y && N.focusTrap) {
						var c = B.find('[tabindex="0"]').filter(function() {
							return this.offsetWidth > 0 || this.offsetHeight > 0
						}),
						d = c.index(a(":focus", B)),
						h = c.length - 1,
						e = 0;
						if (b.shiftKey) {
							h = 0;
							e = -1
						}
						if (d === h) {
							c.eq(e).focus();
							b.preventDefault()
						}
					}
				});
				a("input,select,textarea", B).on("selectstart mousedown",
				function(a) {
					a.stopPropagation()
				}).on("keydown",
				function(a) {
					a.keyCode == 32 && a.stopPropagation()
				});
				a.each(W,
				function(b, c) {
					t.tap(a(".dwb" + b, B),
					function(a) {
						c = g(c) ? t.buttons[c] : c; (g(c.handler) ? t.handlers[c.handler] : c.handler).call(this, a, t)
					},
					true)
				});
				N.closeOnOverlay && t.tap(x,
				function() {
					t.cancel()
				});
				Y && !U && (d || n.focus(), t.ariaMessage(N.ariaMessage));
				B.on("touchstart mousedown pointerdown", ".dwb-e", D).on("touchend", ".dwb-e", C);
				t._attachEvents(B);
				X("onShow", [B, t._tempValue])
			}
		};
		t.hide = function(c, d, h, g) {
			if (!t._isVisible || !h && !t._isValid && "set" == d || !h && !1 === X("onBeforeClose", [t._tempValue, d])) return ! 1;
			B && ("Moz" !== s && a(".dwtd", R).each(function() {
				a(this).prop("disabled", !1).removeClass("dwtd")
			}), q && Y && U && !c && !B.hasClass("dw-trans") ? B.addClass("dw-out dw-trans").on("webkitAnimationEnd animationend",
			function() {
				e(c)
			}).find(".dw").addClass("dw-" + U) : e(c), v.off(ba, F).off("focusin", u));
			Y && (R.removeClass("mbsc-fr-lock"), a(b).off("keydown", p), delete f.activeInstance);
			g && g();
			X("onClosed", [t._value])
		};
		t.ariaMessage = function(a) {
			K.html("");
			setTimeout(function() {
				K.html(a)
			},
			100)
		};
		t.isVisible = function() {
			return t._isVisible
		};
		t.setVal = m;
		t.getVal = m;
		t._generateContent = m;
		t._attachEvents = m;
		t._readValue = m;
		t._fillValue = m;
		t._markupReady = m;
		t._markupInserted = m;
		t._markupRemove = m;
		t._processSettings = m;
		t._presetLoad = function(a) {
			a.buttons = a.buttons || ("inline" !== a.display ? ["set", "cancel"] : []);
			a.headerText = a.headerText === k ? "inline" !== a.display ? "{value}": !1 : a.headerText
		};
		t.destroy = function() {
			t.hide(!0, !1, !0);
			a.each(la,
			function(a, b) {
				b.el.off(".dw").prop("readonly", b.readOnly)
			});
			t._destroy()
		};
		t.init = function(c) {
			c.onClose && (c.onBeforeClose = c.onClose);
			t._init(c);
			t._isLiquid = "liquid" === (N.layout || (/top|bottom/.test(N.display) ? "liquid": ""));
			t._processSettings();
			ca.off(".dw");
			W = N.buttons || [];
			Y = "inline" !== N.display;
			ha = N.showOnFocus || N.showOnTap;
			t._window = v = a("body" == N.context ? b: N.context);
			t._context = R = a(N.context);
			t.live = !0;
			a.each(W,
			function(a, b) {
				if (b == "ok" || b == "set" || b.handler == "set") return t.live = false
			});
			t.buttons.set = {
				text: N.setText,
				handler: "set"
			};
			t.buttons.cancel = {
				text: t.live ? N.closeText: N.cancelText,
				handler: "cancel"
			};
			t.buttons.clear = {
				text: N.clearText,
				handler: "clear"
			};
			t._isInput = ca.is("input");
			E = 0 < W.length;
			t._isVisible && t.hide(!0, !1, !0);
			X("onInit", []);
			Y ? (t._readValue(), t._hasContent || t.attachShow(ca)) : t.show();
			ca.on("change.dw",
			function() {
				t._preventChange || t.setVal(ca.val(), true, false);
				t._preventChange = false
			})
		};
		t.buttons = {};
		t.handlers = {
			set: t.select,
			cancel: t.cancel,
			clear: t.clear
		};
		t._value = null;
		t._isValid = !0;
		t._isVisible = !1;
		N = t.settings;
		X = t.trigger;
		y || t.init(A)
	};
	f.classes.Frame.prototype._defaults = {
		lang: "en",
		setText: "Set",
		selectedText: "{count} selected",
		closeText: "Close",
		cancelText: "Cancel",
		clearText: "Clear",
		disabled: !1,
		closeOnOverlay: !0,
		showOnFocus: !1,
		showOnTap: !0,
		display: "modal",
		scrollLock: !0,
		tap: !0,
		btnClass: "dwb",
		btnWidth: !0,
		focusTrap: !0,
		focusOnClose: !i
	};
	f.themes.frame.mobiscroll = {
		rows: 5,
		showLabel: !1,
		headerText: !1,
		btnWidth: !1,
		selectedLineHeight: !0,
		selectedLineBorder: 1,
		dateOrder: "MMddyy",
		weekDays: "min",
		checkIcon: "ion-ios7-checkmark-empty",
		btnPlusClass: "mbsc-ic mbsc-ic-arrow-down5",
		btnMinusClass: "mbsc-ic mbsc-ic-arrow-up5",
		btnCalPrevClass: "mbsc-ic mbsc-ic-arrow-left5",
		btnCalNextClass: "mbsc-ic mbsc-ic-arrow-right5"
	};
	a(b).on("focus",
	function() {
		c && (j = !0)
	})
})(jQuery, window, document); (function(a) {
	var a = a.mobiscroll.themes.frame,
	b = {
		dateOrder: "Mddyy",
		rows: 5,
		minWidth: 76,
		height: 36,
		showLabel: !1,
		selectedLineHeight: !0,
		selectedLineBorder: 2,
		useShortLabels: !0,
		icon: {
			filled: "star3",
			empty: "star"
		},
		btnPlusClass: "mbsc-ic mbsc-ic-arrow-down6",
		btnMinusClass: "mbsc-ic mbsc-ic-arrow-up6",
		onThemeLoad: function(a, b) {
			b.theme && (b.theme = b.theme.replace("android-ics", "android-holo"))
		},
		onMarkupReady: function(a) {
			a.addClass("mbsc-android-holo")
		}
	};
	a["android-holo"] = b;
	a["android-holo-light"] = b;
	a["android-ics"] = b;
	a["android-ics light"] = b;
	a["android-holo light"] = b
})(jQuery); (function(a) {
	var b = a.mobiscroll.themes.frame,
	l = {
		minWidth: 76,
		height: 76,
		dateOrder: "mmMMddDDyy",
		headerText: !1,
		showLabel: !1,
		deleteIcon: "backspace4",
		icon: {
			filled: "star3",
			empty: "star"
		},
		btnWidth: !1,
		btnStartClass: "mbsc-ic mbsc-ic-play3",
		btnStopClass: "mbsc-ic mbsc-ic-pause2",
		btnResetClass: "mbsc-ic mbsc-ic-stop2",
		btnLapClass: "mbsc-ic mbsc-ic-loop2",
		btnHideClass: "mbsc-ic mbsc-ic-close",
		btnCalPrevClass: "mbsc-ic mbsc-ic-arrow-left2",
		btnCalNextClass: "mbsc-ic mbsc-ic-arrow-right2",
		btnPlusClass: "mbsc-ic mbsc-ic-plus",
		btnMinusClass: "mbsc-ic mbsc-ic-minus",
		onMarkupInserted: function(b, c) {
			var j, f, i, s = c.settings;
			if ("clickpick" != s.mode) a(".dwwl", b).on("touchstart mousedown wheel mousewheel",
			function(c) {
				if (! ("mousedown" === c.type && f || (a.isArray(s.readonly) ? s.readonly[a(".dwwl", b).index(this)] : s.readonly))) f = "touchstart" === c.type,
				j = !0,
				i = a(this).hasClass("wpa"),
				a(".dwwl", b).removeClass("wpa"),
				a(".dw-sel", this).removeClass("dw-sel"),
				a(this).addClass("wpa")
			}).on("touchmove mousemove",
			function() {
				j = !1
			}).on("touchend mouseup",
			function(b) {
				j && i && a(b.target).closest(".dw-li").hasClass("dw-sel") && a(this).removeClass("wpa");
				"mouseup" === b.type && (f = !1);
				j = !1
			})
		},
		onThemeLoad: function(a, b) {
			if (a && a.dateOrder && !b.dateOrder) {
				var j = a.dateOrder,
				j = j.match(/mm/i) ? j.replace(/mmMM|mm|MM/, "mmMM") : j.replace(/mM|m|M/, "mM"),
				j = j.match(/dd/i) ? j.replace(/ddDD|dd|DD/, "ddDD") : j.replace(/dD|d|D/, "dD");
				b.dateOrder = j
			}
		},
		onInit: function(a) {
			a = a.buttons;
			a.set.icon = "checkmark";
			a.cancel.icon = "close";
			a.clear.icon = "close";
			a.ok && (a.ok.icon = "checkmark");
			a.close && (a.close.icon = "close");
			a.now && (a.now.icon = "loop2")
		}
	};
	b.wp = l;
	b["wp-light"] = l;
	b["wp light"] = l
})(jQuery); (function(a) {
	var b = a.mobiscroll.themes.frame,
	l = {
		minWidth: 64,
		height: 60,
		btnStartClass: "mbsc-ic mbsc-ic-play3",
		btnStopClass: "mbsc-ic mbsc-ic-pause2",
		btnResetClass: "mbsc-ic mbsc-ic-stop2",
		btnLapClass: "mbsc-ic mbsc-ic-loop2",
		btnCalPrevClass: "mbsc-ic mbsc-ic-arrow-left5",
		btnCalNextClass: "mbsc-ic mbsc-ic-arrow-right5",
		btnPlusClass: "mbsc-ic mbsc-ic-arrow-down5",
		btnMinusClass: "mbsc-ic mbsc-ic-arrow-up5",
		onMarkupReady: function(b, c) {
			var j = c.settings,
			f = j.height,
			j = j.rows;
			b.addClass("mbsc-sense");
			a(".dww", b).height(j * f - 40);
			a(".dw-ul", b).css("margin-top", j / 2 * f - f / 2 - 20 + "px");
			a(".dwwms .dw-ul", b).css("margin-top", "-20px");
			a(".dwwb", b).css({
				height: f - 20 + "px",
				lineHeight: f - 20 + "px"
			})
		},
		onThemeLoad: function(a, b) {
			b.theme && (b.theme = b.theme.replace("sense5", "sense"))
		}
	};
	b.sense = l;
	b["sense-dark"] = l;
	b.sense5 = l;
	b["sense5-dark"] = l
})(jQuery); (function(a) {
	a.mobiscroll.themes.frame.material = {
		showLabel: !1,
		headerText: !1,
		btnWidth: !1,
		selectedLineHeight: !0,
		selectedLineBorder: 1,
		dateOrder: "MMddyy",
		weekDays: "min",
		deleteIcon: "material-backspace",
		icon: {
			filled: "material-star",
			empty: "material-star-outline"
		},
		checkIcon: "material-check",
		btnPlusClass: "mbsc-ic mbsc-ic-material-keyboard-arrow-down",
		btnMinusClass: "mbsc-ic mbsc-ic-material-keyboard-arrow-up",
		btnCalPrevClass: "mbsc-ic mbsc-ic-material-keyboard-arrow-left",
		btnCalNextClass: "mbsc-ic mbsc-ic-material-keyboard-arrow-right",
		onMarkupReady: function(b) {
			a.mobiscroll.themes.material.initRipple(b, ".dwb-e", "dwb-d", "dwb-nhl")
		},
		onEventBubbleShow: function(b, l) {
			var k = l.hasClass("dw-cal-events-b"),
			c = a(".dw-cal-event-color", l).eq(k ? 0 : -1).css("background-color");
			a(".dw-cal-events-arr", l).css("border-color", k ? "transparent transparent " + c + " transparent": c + "transparent transparent transparent")
		}
	}
})(jQuery); (function(a) {
	var b;
	a.mobiscroll.themes.frame.jqm = {
		jqmBorder: "a",
		jqmHeader: "b",
		jqmWheel: "d",
		jqmLine: "b",
		jqmClickPick: "c",
		jqmSet: "b",
		jqmCancel: "c",
		disabledClass: "ui-disabled",
		activeClass: "ui-btn-active",
		activeTabInnerClass: "ui-btn-active",
		btnCalPrevClass: "",
		btnCalNextClass: "",
		selectedLineHeight: !0,
		selectedLineBorder: 1,
		onThemeLoad: function(l, k) {
			var c = k.jqmBody || "c",
			j = k.jqmEventText || "b",
			f = k.jqmEventBubble || "a";
			b = a.mobile && a.mobile.version && a.mobile.version.match(/1\.4/);
			k.jqmBody || (k.jqmBody = b ? "a": "c");
			k.dayClass = "ui-body-a ui-body-" + c;
			k.innerDayClass = "ui-state-default ui-btn ui-btn-up-" + c;
			k.calendarClass = "ui-body-a ui-body-" + c;
			k.weekNrClass = "ui-body-a ui-body-" + c;
			k.eventTextClass = "ui-btn-up-" + j;
			k.eventBubbleClass = "ui-body-" + f
		},
		onEventBubbleShow: function(b, k) {
			a(".dw-cal-event-list", k).attr("data-role", "listview");
			k.page().trigger("create")
		},
		onMarkupInserted: function(l, k) {
			var c = k.settings;
			b && (l.addClass("mbsc-jqm14"), a(".mbsc-np-btn, .dwwb, .dw-cal-sc-m-cell .dw-i", l).addClass("ui-btn"), a(".dwbc .dwb, .dw-dr", l).addClass("ui-btn ui-mini ui-corner-all"), a(".dw-cal-prev .dw-cal-btn-txt", l).addClass("ui-btn ui-icon-arrow-l ui-btn-icon-notext ui-shadow ui-corner-all"), a(".dw-cal-next .dw-cal-btn-txt", l).addClass("ui-btn ui-icon-arrow-r ui-btn-icon-notext ui-shadow ui-corner-all"));
			a(".dw", l).removeClass("dwbg").addClass("ui-selectmenu ui-overlay-shadow ui-corner-all ui-body-" + c.jqmBorder);
			a(".dwbc .dwb", l).attr("data-role", "button").attr("data-mini", "true").attr("data-theme", c.jqmCancel);
			a(".dwb-s .dwb", l).addClass("ui-btn-" + c.jqmSet).attr("data-theme", c.jqmSet);
			a(".dwwb", l).attr("data-role", "button").attr("data-theme", c.jqmClickPick);
			a(".dwv", l).addClass("ui-header ui-bar-" + c.jqmHeader);
			a(".dwwr", l).addClass("ui-corner-all ui-body-" + c.jqmBody);
			a(".dwwl", l).addClass("ui-body-" + c.jqmWheel);
			a(".dwwol", l).addClass("ui-body-" + c.jqmLine);
			a(".dwl", l).addClass("ui-body-" + c.jqmBody);
			a(".dw-cal-tabs", l).attr("data-role", "navbar");
			a(".dw-cal-prev .dw-cal-btn-txt", l).attr("data-role", "button").attr("data-icon", "arrow-l").attr("data-iconpos", "notext");
			a(".dw-cal-next .dw-cal-btn-txt", l).attr("data-role", "button").attr("data-icon", "arrow-r").attr("data-iconpos", "notext");
			a(".dw-cal-events", l).attr("data-role", "page");
			a(".dw-dr", l).attr("data-role", "button").attr("data-mini", "true");
			a(".mbsc-np-btn", l).attr("data-role", "button").attr("data-corners", "false");
			l.trigger("create")
		}
	}
})(jQuery); (function(a) {
	a.mobiscroll.themes.frame["ios-classic"] = {
		display: "bottom",
		dateOrder: "MMdyy",
		rows: 5,
		height: 30,
		minWidth: 60,
		headerText: !1,
		showLabel: !1,
		btnWidth: !1,
		selectedLineHeight: !0,
		selectedLineBorder: 2,
		useShortLabels: !0
	}
})(jQuery); (function(a) {
	a.mobiscroll.themes.frame.android = {
		dateOrder: "Mddyy",
		mode: "clickpick",
		height: 50,
		showLabel: !1,
		btnStartClass: "mbsc-ic mbsc-ic-play3",
		btnStopClass: "mbsc-ic mbsc-ic-pause2",
		btnResetClass: "mbsc-ic mbsc-ic-stop2",
		btnLapClass: "mbsc-ic mbsc-ic-loop2"
	}
})(jQuery); (function(a) {
	a.mobiscroll.themes.frame["sense-ui"] = {
		btnStartClass: "mbsc-ic mbsc-ic-play3",
		btnStopClass: "mbsc-ic mbsc-ic-pause2",
		btnResetClass: "mbsc-ic mbsc-ic-stop2",
		btnLapClass: "mbsc-ic mbsc-ic-loop2"
	}
})(jQuery); (function(a) {
	var a = a.mobiscroll.themes.frame,
	b = {
		display: "bottom",
		dateOrder: "MMdyy",
		rows: 5,
		height: 34,
		minWidth: 55,
		headerText: !1,
		showLabel: !1,
		btnWidth: !1,
		selectedLineHeight: !0,
		selectedLineBorder: 1,
		useShortLabels: !0,
		deleteIcon: "backspace3",
		checkIcon: "ion-ios7-checkmark-empty",
		btnCalPrevClass: "mbsc-ic mbsc-ic-arrow-left5",
		btnCalNextClass: "mbsc-ic mbsc-ic-arrow-right5",
		btnPlusClass: "mbsc-ic mbsc-ic-arrow-down5",
		btnMinusClass: "mbsc-ic mbsc-ic-arrow-up5",
		onThemeLoad: function(a, b) {
			b.theme && (b.theme = b.theme.replace("ios7", "ios"))
		}
	};
	a.ios = b;
	a.ios7 = b
})(jQuery); (function(a) {
	a.mobiscroll.themes.frame.bootstrap = {
		disabledClass: "disabled",
		activeClass: "btn-primary",
		activeTabClass: "active",
		todayClass: "text-primary",
		btnCalPrevClass: "",
		btnCalNextClass: "",
		selectedLineHeight: !0,
		onMarkupInserted: function(b) {
			a(".dw", b).removeClass("dwbg").addClass("popover");
			a(".dwwr", b).addClass("popover-content");
			a(".dwv", b).addClass("popover-title");
			a(".dw-arrw-i", b).addClass("popover");
			a(".dw-arr", b).addClass("arrow");
			a(".dwb, .dwwb", b).addClass("btn btn-default");
			a(".dwb-s .dwb", b).removeClass("btn-default").addClass("btn btn-primary");
			a(".dw-cal-next .dw-cal-btn-txt", b).prepend('<i class="icon icon-chevron-right glyphicon glyphicon-chevron-right"></i>');
			a(".dw-cal-prev .dw-cal-btn-txt", b).prepend('<i class="icon icon-chevron-left glyphicon glyphicon-chevron-left"></i>');
			a(".dw-cal-tabs ul", b).addClass("nav nav-tabs");
			a(".dw-cal-sc-c", b).addClass("popover");
			a(".dw-week-nrs-c", b).addClass("popover");
			a(".dw-cal-events", b).addClass("popover");
			a(".dw-cal-events-arr", b).addClass("arrow");
			a(".dw-dr", b).addClass("btn btn-sm btn-small btn-default");
			a(".mbsc-np-btn", b).addClass("btn btn-default")
		},
		onPosition: function(b) {
			setTimeout(function() {
				a(".dw-bubble-top, .dw-bubble-top .dw-arrw-i", b).removeClass("bottom").addClass("top");
				a(".dw-bubble-bottom, .dw-bubble-bottom .dw-arrw-i", b).removeClass("top").addClass("bottom")
			},
			10)
		},
		onEventBubbleShow: function(b, l) {
			a(".dw-cal-event-list", l).addClass("list-group");
			a(".dw-cal-event", l).addClass("list-group-item");
			setTimeout(function() {
				l.hasClass("dw-cal-events-b") ? l.removeClass("top").addClass("bottom") : l.removeClass("bottom").addClass("top")
			},
			10)
		}
	}
})(jQuery); (function(a, b) {
	var l, k = function() {},
	c = a.mobiscroll,
	j = c.util,
	f = j.getCoord,
	i = j.testTouch;
	c.classes.Form = function(b, q) {
		function d(b) {
			var c = {},
			d = b[0],
			f = b.parent(),
			g = b.attr("data-password-toggle"),
			i = b.attr("data-icon-show") || "eye",
			m = b.attr("data-icon-hide") || "eye-blocked";
			g && (c.right = "password" == d.type ? i: m);
			j.addIcon(b, c);
			g && p.tap(f.find(".mbsc-right-ic"),
			function() {
				if (d.type == "text") {
					d.type = "password";
					a(this).addClass("mbsc-ic-" + i).removeClass("mbsc-ic-" + m)
				} else {
					d.type = "text";
					a(this).removeClass("mbsc-ic-" + i).addClass("mbsc-ic-" + m)
				}
			})
		}
		function g() {
			if (!a(this).hasClass("mbsc-textarea-scroll")) {
				var b = this.offsetHeight + (this.scrollHeight - this.offsetHeight);
				this.scrollTop = 0;
				this.style.height = b + "px"
			}
		}
		function O(b) {
			var c, d;
			if (b.offsetHeight && (b.style.height = "", c = b.scrollHeight - b.offsetHeight, c = b.offsetHeight + (0 < c ? c: 0), d = Math.round(c / 24), 10 < d ? (b.scrollTop = c, c = 240 + (c - 24 * d), a(b).addClass("mbsc-textarea-scroll")) : a(b).removeClass("mbsc-textarea-scroll"), c)) b.style.height = c + "px"
		}
		function m() {
			clearTimeout(y);
			y = setTimeout(function() {
				a("textarea.mbsc-control", C).each(function() {
					O(this)
				})
			},
			100)
		}
		function M(a) {
			return ! (!a.id || !c.instances[a.id])
		}
		var w, A, y, D, C = a(b),
		p = this;
		c.classes.Base.call(this, b, q, !0);
		p.refresh = function() {
			a("input,select,textarea,progress,button", C).each(function() {
				function b() {
					a("input", S).val( - 1 != q.selectedIndex ? q.options[q.selectedIndex].text: "")
				}
				var m, k, s, o, q = this,
				w = a(q),
				S = w.parent();
				m = w.attr("data-role");
				var K = w.attr("type") || q.nodeName.toLowerCase();
				w.hasClass("mbsc-control") || ("button" != K && "submit" != K ? S: w).prepend();
				if ("false" != w.attr("data-enhance") && a.mobiscroll.running) {
					if (!w.hasClass("mbsc-control")) switch (/(switch|range|segmented|stepper)/.test(m) && (K = m), "button" != K && "submit" != K && "segmented" != K && (S.find("label").addClass("mbsc-label"), S.contents().filter(function() {
						return 3 == this.nodeType && this.nodeValue && /\S/.test(this.nodeValue)
					}).each(function() {
						a('<span class="mbsc-label"></span>').insertAfter(this).append(this)
					})), w.addClass("mbsc-control"), K) {
					case "button":
					case "submit":
						m = w.attr("data-icon");
						w.addClass("mbsc-btn");
						m && (w.prepend('<span class="mbsc-btn-ic mbsc-ic mbsc-ic-' + m + '"></span>'), "" === w.text() && w.addClass("mbsc-btn-icon-only"));
						break;
					case "switch":
						M(q) || new c.classes.Switch(q, {
							theme: A.theme,
							onText: A.onText,
							offText: A.offText,
							stopProp: A.stopProp
						});
						break;
					case "checkbox":
						S.prepend(w).addClass("mbsc-checkbox");
						w.after('<span class="mbsc-checkbox-box"></span>');
						break;
					case "range":
						!S.hasClass("mbsc-slider") && !M(q) && new c.classes.Slider(q, {
							theme: A.theme,
							stopProp: A.stopProp
						});
						break;
					case "progress":
						M(q) || new c.classes.Progress(q, {
							theme: A.theme
						});
						break;
					case "radio":
						S.addClass("mbsc-radio");
						w.after('<span class="mbsc-radio-box"><span></span></span>');
						break;
					case "select":
					case "select-one":
					case "select-multiple":
						m = w.prev().is("input.mbsc-control") ? w.prev() : a('<input tabindex="-1" type="text" class="mbsc-control mbsc-control-ev" readonly>');
						d(w);
						S.addClass("mbsc-input mbsc-select");
						w.after(m);
						m.after('<span class="mbsc-select-ic mbsc-ic mbsc-ic-arrow-down5"></span>');
						break;
					case "textarea":
						d(w);
						S.addClass("mbsc-input mbsc-textarea");
						break;
					case "segmented":
						var R, h;
						w.parent().hasClass("mbsc-segmented-item") || (h = a('<div class="mbsc-segmented"></div>'), S.after(h), a('input[name="' + w.attr("name") + '"]', C).each(function(b, c) {
							R = a(c).parent();
							R.addClass("mbsc-segmented-item").append('<span class="mbsc-segmented-content">' + (a(c).attr("data-icon") ? ' <span class="mbsc-ic mbsc-ic-' + a(c).attr("data-icon") + '"></span> ': "") + (R.text() || "") + "</span>");
							R.contents().filter(function() {
								return this.nodeType === 3
							}).remove();
							h.append(R)
						}));
						break;
					case "stepper":
						M(q) || new c.classes.Stepper(q, {
							form: p
						});
						break;
					case "hidden":
						break;
					default:
						d(w),
						S.addClass("mbsc-input")
					}
					if (!w.hasClass("mbsc-control-ev")) { / select / .test(K) && (w.on("change.mbsc-form", b), b());
						if ("textarea" == K) w.on("keydown.mbsc-form input.mbsc-form",
						function() {
							clearTimeout(y);
							y = setTimeout(function() {
								O(q)
							},
							100)
						}).on("scroll.mbsc-form", g);
						w.addClass("mbsc-control-ev").on("touchstart.mbsc-form mousedown.mbsc-form",
						function(b) {
							if (i(b, this)) {
								s = f(b, "X");
								o = f(b, "Y");
								l && l.removeClass("mbsc-active");
								if (!q.disabled) {
									k = true;
									l = a(this);
									a(this).addClass("mbsc-active");
									D("onControlActivate", [a(this), b])
								}
							}
						}).on("touchmove.mbsc-form mousemove.mbsc-form",
						function(a) {
							if (k && Math.abs(f(a, "X") - s) > 9 || Math.abs(f(a, "Y") - o) > 9) {
								w.removeClass("mbsc-active");
								D("onControlDeactivate", [w, a]);
								k = false
							}
						}).on("touchend.mbsc-form touchcancel.mbsc-form mouseleave.mbsc-form mouseup.mbsc-form",
						function(a) {
							if (k && a.type == "touchend" && !q.readOnly) {
								w.focus();
								/(button|submit|checkbox|switch|radio)/.test(K) && a.preventDefault();
								if (!/select/.test(K)) {
									var b = (a.originalEvent || a).changedTouches[0],
									c = document.createEvent("MouseEvents");
									c.initMouseEvent("click", true, true, window, 1, b.screenX, b.screenY, b.clientX, b.clientY, false, false, false, false, 0, null);
									c.tap = true;
									q.dispatchEvent(c);
									j.preventClick()
								}
							}
							k && setTimeout(function() {
								w.removeClass("mbsc-active");
								D("onControlDeactivate", [w, a])
							},
							100);
							k = false;
							l = null
						})
					}
				}
			});
			m()
		};
		p.init = function(b) {
			p._init(b);
			c.themes.form[A.theme] || (A.theme = "mobiscroll");
			w = "mbsc-form mbsc-" + A.theme + (A.baseTheme ? " mbsc-" + A.baseTheme: "") + (A.rtl ? " mbsc-rtl": " mbsc-ltr");
			C.hasClass("mbsc-form") || C.addClass(w).on("touchstart", k).show();
			a(window).on("resize orientationchange", m);
			p.refresh();
			p.trigger("onInit", [])
		};
		p.destroy = function() {
			C.removeClass(w).off("touchstart", k);
			a(window).off("resize orientationchange", m);
			a(".mbsc-control", C).off(".mbsc-form").removeClass("mbsc-control-ev");
			p._destroy();
			a(".mbsc-progress progress", C).mobiscroll("destroy");
			a(".mbsc-slider input", C).mobiscroll("destroy");
			a(".mbsc-stepper input", C).mobiscroll("destroy");
			a(".mbsc-switch input", C).mobiscroll("destroy")
		};
		A = p.settings;
		D = p.trigger;
		p.init(q)
	};
	c.classes.Form.prototype = {
		_hasDef: !0,
		_hasTheme: !0,
		_hasLang: !0,
		_class: "form",
		_defaults: {
			tap: !0,
			stopProp: !0,
			lang: "en"
		}
	};
	c.themes.form.mobiscroll = {};
	c.presetShort("form", "Form");
	c.classes.Stepper = function(j, k) {
		function d(b) {
			32 == b.keyCode && (b.preventDefault(), !H && !j.disabled && (p = a(this).addClass("mbsc-active"), y(b)))
		}
		function g(a) {
			H && (a.preventDefault(), D(!0))
		}
		function l(b) {
			if (i(b, this) && !j.disabled && a.mobiscroll.running && (p = a(this).addClass("mbsc-active").focus(), Y && Y.trigger("onControlActivate", [p, b]), y(b), "mousedown" === b.type)) a(document).on("mousemove", M).on("mouseup", m)
		}
		function m(b) {
			H && (b.preventDefault(), D(!0, b), "mouseup" === b.type && a(document).off("mousemove", M).off("mouseup", m))
		}
		function M(a) {
			H && (S = f(a, "X"), K = f(a, "Y"), G = S - n, J = K - v, (7 < Math.abs(G) || 7 < Math.abs(J)) && D())
		}
		function w() {
			var b;
			j.disabled || (b = parseFloat(a(this).val()), A(isNaN(b) ? P: b))
		}
		function A(a, c, d) {
			E = P;
			c === b && (c = !0);
			d === b && (d = c);
			P = a !== b ? Math.min(h, Math.max(Math.round(a / x) * x, B)) : Math.min(h, Math.max(P + (p.hasClass("mbsc-stepper-minus") ? -x: x), B));
			o = !0;
			u.removeClass("mbsc-step-disabled");
			c && r.val(P);
			P == B ? F.addClass("mbsc-step-disabled") : P == h && e.addClass("mbsc-step-disabled");
			P !== E && d && r.change()
		}
		function y(a) {
			H || (H = !0, o = !1, n = f(a, "X"), v = f(a, "Y"), clearInterval(R), clearTimeout(R), R = setTimeout(function() {
				A();
				R = setInterval(function() {
					A()
				},
				150)
			},
			300))
		}
		function D(a, b) {
			clearInterval(R);
			clearTimeout(R); ! o && a && A();
			o = H = !1;
			p.removeClass("mbsc-active");
			Y && setTimeout(function() {
				Y.trigger("onControlDeactivate", [p, b])
			},
			100)
		}
		function C(a, c) {
			var d = r.attr(a);
			return d === b || "" === d ? c: +d
		}
		var p, e, F, u, H, o, G, J, S, K, R, h, B, x, L, n, v, P, W = this,
		r = a(j),
		U = r.hasClass("mbsc-stepper-ready"),
		X = U ? r.closest(".mbsc-stepper-cont") : r.parent(),
		E = P,
		Y = k.form;
		c.classes.Base.call(this, j, k, !0);
		W.getVal = function() {
			var a = parseFloat(r.val()),
			a = isNaN(a) ? P: a;
			return Math.min(h, Math.max(Math.round(a / x) * x, B))
		};
		W.setVal = function(a, b, c) {
			a = parseFloat(a);
			A(isNaN(a) ? P: a, b, c)
		};
		W.init = function(c) {
			W._init(c);
			L = W.settings;
			B = c.min === b ? C("min", L.min) : c.min;
			h = c.max === b ? C("max", L.max) : c.max;
			x = c.step === b ? C("step", L.step) : c.step;
			P = Math.round( + j.value / x) * x || 0;
			U || X.addClass("mbsc-stepper-cont").append('<span class="mbsc-segmented mbsc-stepper"></span>').find(".mbsc-stepper").append('<span class="mbsc-segmented-item mbsc-stepper-control mbsc-stepper-minus ' + (P == B ? "mbsc-step-disabled": "") + '"  tabindex="0"><span class="mbsc-segmented-content"><span class="mbsc-ic mbsc-ic-minus"></span></span></span>').append('<span class="mbsc-segmented-item mbsc-stepper-control mbsc-stepper-plus ' + (P == h ? "mbsc-step-disabled": "") + '"  tabindex="0"><span class="mbsc-segmented-content"> <span class="mbsc-ic mbsc-ic-plus"></span> </span></span>').prepend(r);
			F = a(".mbsc-stepper-minus", X);
			e = a(".mbsc-stepper-plus", X);
			U || ("left" == r.attr("data-val") ? (X.addClass("mbsc-stepper-val-left"), r.after('<span class="mbsc-segmented-item"><span class="mbsc-segmented-content"></span></span>')) : "right" == r.attr("data-val") ? (X.addClass("mbsc-stepper-val-right"), e.after('<span class="mbsc-segmented-item"><span class="mbsc-segmented-content"></span></span>')) : F.after('<span class="mbsc-segmented-item"><span class="mbsc-segmented-content mbsc-stepper-val"></span></span>'));
			r.val(P).attr("data-role", "stepper").attr("min", B).attr("max", h).attr("step", x).on("change", w);
			u = a(".mbsc-stepper-control", X).on("keydown", d).on("keyup", g).on("mousedown touchstart", l).on("touchmove", M).on("touchend touchcancel", m);
			r.addClass("mbsc-stepper-ready mbsc-control");
			r.hasClass("mbsc-control") || ("button" != type && "submit" != type ? X: r).prepend()
		};
		W.destroy = function() {
			r.removeClass("mbsc-control").off("change", w);
			u.off("keydown", d).off("keyup", g).off("mousedown touchstart", l).off("touchmove", M).off("touchend touchcancel", m);
			W._destroy()
		};
		W.init(k)
	};
	c.classes.Stepper.prototype = {
		_class: "stepper",
		_defaults: {
			min: 0,
			max: 100,
			step: 1
		}
	};
	c.presetShort("stepper", "Stepper");
	c.classes.Switch = function(b, f) {
		var d, g, i, m = this,
		f = f || {};
		a.extend(f, {
			changeEvent: "click",
			min: 0,
			max: 1,
			step: 1,
			live: !1,
			round: !1,
			handle: !1,
			highlight: !1
		});
		c.classes.Slider.call(this, b, f, !0);
		m._readValue = function() {
			return b.checked ? 1 : 0
		};
		m._fillValue = function(a, b, c) {
			d.prop("checked", !!a);
			c && d.change()
		};
		m._onTap = function(a) {
			m._setVal(a ? 0 : 1)
		};
		m.__onInit = function() {
			i = m.settings;
			d = a(b);
			g = d.parent();
			g.prepend(d);
			d.attr("data-role", "switch").after('<span class="mbsc-progress-cont mbsc-switch-track"><span class="mbsc-progress-track mbsc-progress-anim"><span class="mbsc-slider-handle-cont"><span class="mbsc-slider-handle mbsc-switch-handle" data-index="0"><span class="mbsc-switch-txt-off">' + i.offText + '</span><span class="mbsc-switch-txt-on">' + i.onText + "</span></span></span></span></span>");
			m._$track = g.find(".mbsc-progress-track")
		};
		m.getVal = function() {
			return b.checked
		};
		m.setVal = function(a, b, c) {
			m._setVal(a ? 1 : 0, b, c)
		};
		m.init(f)
	};
	c.classes.Switch.prototype = {
		_class: "switch",
		_css: "mbsc-switch",
		_hasTheme: !0,
		_hasLang: !0,
		_defaults: {
			stopProp: !0,
			offText: "Off",
			onText: "On"
		}
	};
	c.presetShort("switch", "Switch");
	a(function() {
		a("[mbsc-enhance]").each(function() {
			a(this).mobiscroll().form()
		});
		a(document).on("mbsc-enhance",
		function(b, c) {
			a(b.target).is("[mbsc-enhance]") ? a(b.target).mobiscroll().form(c) : a("[mbsc-enhance]", b.target).each(function() {
				a(this).mobiscroll().form(c)
			})
		});
		a(document).on("mbsc-refresh",
		function(b) {
			a(b.target).is("[mbsc-enhance]") ? a(b.target).mobiscroll("refresh") : a("[mbsc-enhance]", b.target).each(function() {
				a(this).mobiscroll("refresh")
			})
		})
	})
})(jQuery); (function(a) {
	a.mobiscroll.themes.form["android-holo"] = {}
})(jQuery); (function(a) {
	a.mobiscroll.themes.form.wp = {}
})(jQuery); (function(a) {
	a.mobiscroll.themes.form.material = {
		onControlActivate: function(b, l) {
			var k;
			if ("button" == b[0].type || "submit" == b[0].type) k = b;
			"segmented" == b.attr("data-role") && (k = b.next());
			b.hasClass("mbsc-stepper-control") && !b.hasClass("mbsc-step-disabled") && (k = b.find(".mbsc-segmented-content"));
			k && a.mobiscroll.themes.material.addRipple(k, l)
		},
		onControlDeactivate: function() {
			a.mobiscroll.themes.material.removeRipple()
		}
	}
})(jQuery); (function(a) {
	a.mobiscroll.themes.form.ios = {}
})(jQuery); (function(a, b, l, k) {
	var b = a.mobiscroll,
	c = b.classes,
	j = b.util,
	f = j.jsPrefix,
	i = j.has3d,
	s = j.hasFlex,
	q = j.getCoord,
	d = j.constrain,
	g = j.testTouch;
	b.presetShort("scroller", "Scroller", !1);
	c.Scroller = function(b, m, M) {
		function w(b) {
			if (g(b, this) && !t && !V && !P && !H(this) && a.mobiscroll.running && (b.preventDefault(), b.stopPropagation(), W = "clickpick" != E.mode, t = a(".dw-ul", this), G(t), ha = (ba = ka[ca] !== k) ? Math.round( - j.getPosition(t, !0) / r) : Q[ca], Z = q(b, "Y", !0), N = new Date, ea = Z, K(t, ca, ha, 0.001), W && t.closest(".dwwl").addClass("dwa"), "mousedown" === b.type)) a(l).on("mousemove", A).on("mouseup", y)
		}
		function A(a) {
			if (t && W && (a.preventDefault(), a.stopPropagation(), ea = q(a, "Y", !0), 3 < Math.abs(ea - Z) || ba)) K(t, ca, d(ha + (Z - ea) / r, ga - 1, ja + 1)),
			ba = !0
		}
		function y(b) {
			if (t) {
				var c = new Date - N,
				h = d(Math.round(ha + (Z - ea) / r), ga - 1, ja + 1),
				e = h,
				f,
				g = t.offset().top;
				b.stopPropagation();
				"mouseup" === b.type && a(l).off("mousemove", A).off("mouseup", y);
				i && 300 > c ? (f = (ea - Z) / c, c = f * f / E.speedUnit, 0 > ea - Z && (c = -c)) : c = ea - Z;
				if (ba) e = d(Math.round(ha - c / r), ga, ja),
				c = f ? Math.max(0.1, Math.abs((e - h) / f) * E.timeUnit) : 0.1;
				else {
					var h = Math.floor((ea - g) / r),
					m = a(a(".dw-li", t)[h]);
					f = m.hasClass("dw-v");
					g = W;
					c = 0.1; ! 1 !== T("onValueTap", [m]) && f ? e = h: g = !0;
					g && f && (m.addClass("dw-hl"), setTimeout(function() {
						m.removeClass("dw-hl")
					},
					100));
					if (!U && (!0 === E.confirmOnTap || E.confirmOnTap[ca]) && m.hasClass("dw-sel")) {
						I.select();
						t = !1;
						return
					}
				}
				W && B(t, ca, e, 0, c, !0);
				t = !1
			}
		}
		function D(b) {
			P = a(this);
			g(b, this) && a.mobiscroll.running && u(b, P.closest(".dwwl"), P.hasClass("dwwbp") ? x: L);
			if ("mousedown" === b.type) a(l).on("mouseup", C)
		}
		function C(b) {
			P = null;
			V && (clearInterval($), V = !1);
			"mouseup" === b.type && a(l).off("mouseup", C)
		}
		function p(b) {
			38 == b.keyCode ? u(b, a(this), L) : 40 == b.keyCode && u(b, a(this), x)
		}
		function e() {
			V && (clearInterval($), V = !1)
		}
		function F(b) {
			if (!H(this) && a.mobiscroll.running) {
				b.preventDefault();
				var b = b.originalEvent || b,
				c = b.deltaY || b.wheelDelta || b.detail,
				h = a(".dw-ul", this);
				G(h);
				K(h, ca, d(((0 > c ? -20 : 20) - X[ca]) / r, ga - 1, ja + 1));
				clearTimeout(Y);
				Y = setTimeout(function() {
					B(h, ca, Math.round(Q[ca]), 0 < c ? 1 : 2, 0.1)
				},
				200)
			}
		}
		function u(a, b, c) {
			a.stopPropagation();
			a.preventDefault();
			if (!V && !H(b) && !b.hasClass("dwa")) {
				V = !0;
				var d = b.find(".dw-ul");
				G(d);
				clearInterval($);
				$ = setInterval(function() {
					c(d)
				},
				E.delay);
				c(d)
			}
		}
		function H(b) {
			return a.isArray(E.readonly) ? (b = a(".dwwl", v).index(b), E.readonly[b]) : E.readonly
		}
		function o(b) {
			var c = '<div class="dw-bf">',
			b = sa[b],
			d = 1,
			h = b.labels || [],
			f = b.values || [],
			e = b.keys || f;
			a.each(f,
			function(b, f) {
				0 === d % 20 && (c += '</div><div class="dw-bf">');
				c += '<div role="option" aria-selected="false" class="dw-li dw-v" data-val="' + e[b] + '"' + (h[b] ? ' aria-label="' + h[b] + '"': "") + ' style="height:' + r + "px;line-height:" + r + 'px;"><div class="dw-i"' + (1 < la ? ' style="line-height:' + Math.round(r / la) + "px;font-size:" + Math.round(0.8 * (r / la)) + 'px;"': "") + ">" + f + "</div></div>";
				d++
			});
			return c += "</div>"
		}
		function G(b) {
			U = b.closest(".dwwl").hasClass("dwwms");
			ga = a(".dw-li", b).index(a(U ? ".dw-li": ".dw-v", b).eq(0));
			ja = Math.max(ga, a(".dw-li", b).index(a(U ? ".dw-li": ".dw-v", b).eq( - 1)) - (U ? E.rows - ("scroller" == E.mode ? 1 : 3) : 0));
			ca = a(".dw-ul", v).index(b)
		}
		function J(a) {
			var c = E.headerText;
			return c ? "function" === typeof c ? c.call(b, a) : c.replace(/\{value\}/i, a) : ""
		}
		function S(a, b) {
			clearTimeout(ka[b]);
			delete ka[b];
			a.closest(".dwwl").removeClass("dwa")
		}
		function K(a, b, c, d, h) {
			var e = -c * r,
			g = a[0].style;
			e == X[b] && ka[b] || (X[b] = e, i ? (g[f + "Transition"] = j.prefix + "transform " + (d ? d.toFixed(3) : 0) + "s ease-out", g[f + "Transform"] = "translate3d(0," + e + "px,0)") : g.top = e + "px", ka[b] && S(a, b), d && h && (a.closest(".dwwl").addClass("dwa"), ka[b] = setTimeout(function() {
				S(a, b)
			},
			1E3 * d)), Q[b] = c)
		}
		function R(b, c, h, e, f) {
			var g = a('.dw-li[data-val="' + b + '"]', c),
			i = a(".dw-li", c),
			b = i.index(g),
			m = i.length;
			if (e) G(c);
			else if (!g.hasClass("dw-v")) {
				for (var Q = g,
				n = 0,
				j = 0; 0 <= b - n && !Q.hasClass("dw-v");) n++,
				Q = i.eq(b - n);
				for (; b + j < m && !g.hasClass("dw-v");) j++,
				g = i.eq(b + j); (j < n && j && 2 !== h || !n || 0 > b - n || 1 == h) && g.hasClass("dw-v") ? b += j: (g = Q, b -= n)
			}
			h = g.hasClass("dw-sel");
			f && (e || (a(".dw-sel", c).removeAttr("aria-selected"), g.attr("aria-selected", "true")), a(".dw-sel", c).removeClass("dw-sel"), g.addClass("dw-sel"));
			return {
				selected: h,
				v: e ? d(b, ga, ja) : b,
				val: g.hasClass("dw-v") || e ? g.attr("data-val") : null
			}
		}
		function h(b, c, d, h, e) { ! 1 !== T("validate", [v, c, b, h]) && (a(".dw-ul", v).each(function(d) {
				var f = a(this),
				g = f.closest(".dwwl").hasClass("dwwms"),
				i = d == c || c === k,
				g = R(I._tempWheelArray[d], f, h, g, !0);
				if (!g.selected || i) I._tempWheelArray[d] = g.val,
				K(f, d, g.v, i ? b: 0.1, i ? e: !1)
			}), T("onValidated", [c]), I._tempValue = E.formatValue(I._tempWheelArray, I), I.live && (I._hasValue = d || I._hasValue, n(d, d, 0, !0)), I._header.html(J(I._tempValue)), d && T("onChange", [I._tempValue]))
		}
		function B(b, c, e, f, g, i) {
			e = d(e, ga, ja);
			I._tempWheelArray[c] = a(".dw-li", b).eq(e).attr("data-val");
			K(b, c, e, g, i);
			setTimeout(function() {
				h(g, c, !0, f, i)
			},
			10)
		}
		function x(a) {
			var b = Q[ca] + 1;
			B(a, ca, b > ja ? ga: b, 1, 0.1)
		}
		function L(a) {
			var b = Q[ca] - 1;
			B(a, ca, b < ga ? ja: b, 2, 0.1)
		}
		function n(a, b, c, d, e) {
			I._isVisible && !d && h(c);
			I._tempValue = E.formatValue(I._tempWheelArray, I);
			e || (I._wheelArray = I._tempWheelArray.slice(0), I._value = I._hasValue ? I._tempValue: null);
			a && (T("onValueFill", [I._hasValue ? I._tempValue: "", b]), I._isInput && ta.val(I._hasValue ? I._tempValue: ""), b && (I._preventChange = !0, ta.change()))
		}
		var v, P, W, r, U, X, E, Y, T, V, ba, Z, N, ea, ha, ga, ja, t, ca, la, $, I = this,
		ta = a(b),
		ka = {},
		Q = {},
		sa = [];
		c.Frame.call(this, b, m, !0);
		I.setVal = I._setVal = function(c, d, h, e, f) {
			I._hasValue = null !== c && c !== k;
			I._tempWheelArray = a.isArray(c) ? c.slice(0) : E.parseValue.call(b, c, I) || [];
			n(d, h === k ? d: h, f, !1, e)
		};
		I.getVal = I._getVal = function(a) {
			a = I._hasValue || a ? I[a ? "_tempValue": "_value"] : null;
			return j.isNumeric(a) ? +a: a
		};
		I.setArrayVal = I.setVal;
		I.getArrayVal = function(a) {
			return a ? I._tempWheelArray: I._wheelArray
		};
		I.setValue = function(a, b, c, d, h) {
			I.setVal(a, b, h, d, c)
		};
		I.getValue = I.getArrayVal;
		I.changeWheel = function(b, c, d) {
			if (v) {
				var e = 0,
				f = b.length;
				a.each(E.wheels,
				function(g, i) {
					a.each(i,
					function(g, i) {
						if ( - 1 < a.inArray(e, b) && (sa[e] = i, a(".dw-ul", v).eq(e).html(o(e)), f--, !f)) return I.position(),
						h(c, k, d),
						!1;
						e++
					});
					if (!f) return ! 1
				})
			}
		};
		I.getValidCell = R;
		I.scroll = K;
		I._generateContent = function() {
			var b, c = "",
			d = 0;
			a.each(E.wheels,
			function(h, e) {
				c += '<div class="mbsc-w-p dwc' + ("scroller" != E.mode ? " dwpm": " dwsc") + (E.showLabel ? "": " dwhl") + '"><div class="dwwc"' + (E.maxWidth ? "": ' style="max-width:600px;"') + ">" + (s ? "": '<table class="dw-tbl" cellpadding="0" cellspacing="0"><tr>');
				a.each(e,
				function(a, h) {
					sa[d] = h;
					b = h.label !== k ? h.label: a;
					c += "<" + (s ? "div": "td") + ' class="dwfl" style="' + (E.fixedWidth ? "width:" + (E.fixedWidth[d] || E.fixedWidth) + "px;": (E.minWidth ? "min-width:" + (E.minWidth[d] || E.minWidth) + "px;": "min-width:" + E.width + "px;") + (E.maxWidth ? "max-width:" + (E.maxWidth[d] || E.maxWidth) + "px;": "")) + '"><div class="dwwl dwwl' + d + (h.multiple ? " dwwms": "") + '">' + ("scroller" != E.mode ? '<div class="dwb-e dwwb dwwbp ' + (E.btnPlusClass || "") + '" style="height:' + r + "px;line-height:" + r + 'px;"><span>+</span></div><div class="dwb-e dwwb dwwbm ' + (E.btnMinusClass || "") + '" style="height:' + r + "px;line-height:" + r + 'px;"><span>&ndash;</span></div>': "") + '<div class="dwl">' + b + '</div><div tabindex="0" aria-live="off" aria-label="' + b + '" role="listbox" class="dwww"><div class="dww" style="height:' + E.rows * r + 'px;"><div class="dw-ul" style="margin-top:' + (h.multiple ? "scroller" == E.mode ? 0 : r: E.rows / 2 * r - r / 2) + 'px;">';
					c += o(d) + '</div></div><div class="dwwo"></div></div><div class="dwwol"' + (E.selectedLineHeight ? ' style="height:' + r + "px;margin-top:-" + (r / 2 + (E.selectedLineBorder || 0)) + 'px;"': "") + "></div></div>" + (s ? "</div>": "</td>");
					d++
				});
				c += (s ? "": "</tr></table>") + "</div></div>"
			});
			return c
		};
		I._attachEvents = function(a) {
			a.on("keydown", ".dwwl", p).on("keyup", ".dwwl", e).on("touchstart mousedown", ".dwwl", w).on("touchmove", ".dwwl", A).on("touchend", ".dwwl", y).on("touchstart mousedown", ".dwwb", D).on("touchend touchcancel", ".dwwb", C);
			if (E.mousewheel) a.on("wheel mousewheel", ".dwwl", F)
		};
		I._markupReady = function(a) {
			v = a;
			X = {};
			h()
		};
		I._fillValue = function() {
			I._hasValue = !0;
			n(!0, !0, 0, !0)
		};
		I._readValue = function() {
			var a = ta.val() || "";
			"" !== a && (I._hasValue = !0);
			I._tempWheelArray = I._hasValue && I._wheelArray ? I._wheelArray.slice(0) : E.parseValue.call(b, a, I) || [];
			n()
		};
		I._processSettings = function() {
			E = I.settings;
			T = I.trigger;
			r = E.height;
			la = E.multiline;
			I._isLiquid = "liquid" === (E.layout || (/top|bottom/.test(E.display) && 1 == E.wheels.length ? "liquid": ""));
			E.formatResult && (E.formatValue = E.formatResult);
			1 < la && (E.cssClass = (E.cssClass || "") + " dw-ml");
			"scroller" != E.mode && (E.rows = Math.max(3, E.rows))
		};
		I._selectedValues = {};
		M || I.init(m)
	};
	c.Scroller.prototype = {
		_hasDef: !0,
		_hasTheme: !0,
		_hasLang: !0,
		_hasPreset: !0,
		_class: "scroller",
		_defaults: a.extend({},
		c.Frame.prototype._defaults, {
			minWidth: 80,
			height: 40,
			rows: 3,
			multiline: 1,
			delay: 300,
			readonly: !1,
			showLabel: !0,
			confirmOnTap: !0,
			wheels: [],
			mode: "scroller",
			preset: "",
			speedUnit: 0.0012,
			timeUnit: 0.08,
			formatValue: function(a) {
				return a.join(" ")
			},
			parseValue: function(b, c) {
				var d = [],
				f = [],
				g = 0,
				i,
				j;
				null !== b && b !== k && (d = (b + "").split(" "));
				a.each(c.settings.wheels,
				function(b, c) {
					a.each(c,
					function(b, c) {
						j = c.keys || c.values;
						i = j[0];
						a.each(j,
						function(a, b) {
							if (d[g] == b) return i = b,
							!1
						});
						f.push(i);
						g++
					})
				});
				return f
			}
		})
	};
	b.themes.scroller = b.themes.frame
})(jQuery, window, document); (function(a, b) {
	var l = a.mobiscroll,
	k = l.util.isNumeric,
	c = function() {},
	j = l.classes;
	j.Numpad = function(c, i, s) {
		function l(b) {
			var g, i = (g = D.validate.call(c, p.slice(0), S, o) || []) && g.disabled || [];
			o._isValid = g.invalid ? !1 : !0;
			o._tempValue = D.formatValue.call(c, p.slice(0), S, o);
			y = p.length;
			e = g.length || F;
			if (o._isVisible && a.mobiscroll.running) {
				a(".mbsc-np-ph", M).each(function(b) {
					a(this).html("ltr" == D.fill ? b >= y ? A: C || p[b] : b >= F - e ? b + y < F ? A: C || p[b + y - F] : "")
				});
				a(".mbsc-np-cph", M).each(function() {
					a(this).html(S[a(this).attr("data-var")] || a(this).attr("data-ph"))
				});
				if (y === F) for (g = 0; 9 >= g; g++) i.push(g);
				a(".mbsc-np-btn", M).removeClass(w);
				for (g = 0; g < i.length; g++) a('.mbsc-np-btn[data-val="' + i[g] + '"]', M).addClass(w);
				o._isValid ? a(".dwb-s .dwb", M).removeClass(w) : a(".dwb-s .dwb", M).addClass(w);
				o.live && (o._hasValue = b || o._hasValue, d(b))
			}
		}
		function d(b, c, d, g) {
			c && l();
			g || (u = p.slice(0), K = a.extend({},
			S), G = J.slice(0), o._value = o._tempValue);
			b && (o._isInput && H.val(o._hasValue && o._isValid ? o._value: ""), d && (o._preventChange = !0, H.change()))
		}
		function g(a) {
			var b, c = a || [],
			d = [];
			J = [];
			S = {};
			for (a = 0; a < c.length; a++) / :/.test(c[a])?(b=c[a].split(":"),S[b[0]]=b[1],J.push(b[0])):(d.push(c[a]),J.push("digit"));return d}function O(b,c){if(!(!y&&!c&&!D.allowLeadingZero||b.hasClass("dwb-d")||b.hasClass("mbsc-np-btn-empty"))&&y<F&&a.mobiscroll.running)J.push("digit"),p.push(c),l(!0)}function m(){var a,b,c=J.pop();if(y||"digit"!==c){if("digit"!==c&&S[c]){delete S[c];b=J.slice(0);J=[];for(a=0;a<b.length;a++)b[a]!==c&&J.push(b[a])}else p.pop();l(!0)}}var M,w,A,y,D,C,p,e,F,u,
H=a(c),o=this,G=[],J=[],S={},K={},R={48:0,49:1,50:2,51:3,52:4,53:5,54:6,55:7,56:8,57:9,96:0,97:1,98:2,99:3,100:4,101:5,102:6,103:7,104:8,105:9};j.Frame.call(this,c,i,!0);o.setVal=o._setVal=function(h,e,i,m){o._hasValue=null!==h&&h!==b;p=g(a.isArray(h)?h.slice(0):D.parseValue.call(c,h,o));d(e,!0,i===b?e:i,m)};o.getVal=o._getVal=function(a){return o._hasValue||a?o[a?"_tempValue":"_value"]:null};o.setArrayVal=o.setVal;o.getArrayVal=function(a){return a?p.slice(0):o._hasValue?u.slice(0):null};o.setValue=
o.setVal;o.getValue=o.getArrayVal;o._readValue=function(){var a=H.val()||"";""!==a&&(o._hasValue=!0);C?(S={},J=[],p=[]):(S=o._hasValue?K:{},J=o._hasValue?G:[],p=o._hasValue&&u?u.slice(0):g(D.parseValue.call(c,a,o)),d(!1,!0))};o._fillValue=function(){o._hasValue=!0;d(!0,!1,!0)};o._generateContent=function(){var b,c,d,e=1;b="";var g;g=""+('<div class="mbsc-np-hdr"><div role="button" tabindex="0" aria-label="'+
D.deleteText+'" class="mbsc-np-del dwb-e mbsc-ic mbsc-ic-'+D.deleteIcon+'"></div > <div class = "mbsc-np-dsp" > ');b=D.template.replace(/d/g,' < span class = "mbsc-np-ph" > '+A+"</span>").replace(/&#100;/g,"d");b=b.replace(/{([a-zA-Z0-9]*)\:?([a-zA-Z0-9\-\_]*)}/g,'<span class = "mbsc-np-cph" data-var = "$1" data-ph = "$2">$2</span>');g=g+b+'</div > </div><div class="mbsc-np-tbl-c mbsc-w-p"><div class="mbsc-np-tbl">';for(b=0;4>b;b++){g+='<div class="mbsc-np-row">';for(c=0;3>c;c++)d=e,10==e||12==e?d="":11==e&&(d=0),g=
""===d?10==e&&D.leftButton?g+('<div role="button" tabindex="0" class="mbsc-np-btn mbsc-np-btn-custom dwb-e" '+(D.leftButton.variable?'data-var="'+D.leftButton.variable+'"':"")+' data-val="'+D.leftButton.value+'" >'+D.leftButton.text+"</div > "):12==e&&D.rightButton?g+('<div role="button " tabindex="0 " class="mbsc - np - btn mbsc - np - btn - custom dwb - e " '+(D.rightButton.variable?'data-var="'+D.rightButton.variable+'"':"")+' data-val="'+D.rightButton.value+'" >'+D.rightButton.text+" < /div>"):g+'<div class="mbsc-np-btn mbsc-np-btn-empty"></div > ':
g+(' < div tabindex = "0"role = "button"class = "mbsc-np-btn dwb-e"data - val = "'+d+'" > '+d+"</div>"),e++;g+="</div>"}return g+"</div></div>"};o._markupReady=function(){M=o._markup;l()};o._attachEvents=function(c){c.on("keydown",function(c){R[c.keyCode]!==b?O(a('.mbsc - np - btn[data - val = "'+R[c.keyCode]+'"]'),R[c.keyCode]):8==c.keyCode&&(c.preventDefault(),m())});o.tap(a(".mbsc-np-btn",c),function(){var b=a(this);if(b.hasClass("mbsc-np-btn-custom")){var c=b.attr("data-val"),d=b.attr("data-var");
if(!b.hasClass("dwb-d")){d&&(b=d.split(":"),J.push(b[0]),S[b[0]]=b[1]);if(c.length+y<=e)for(b=0;b<c.length;++b)J.push("digit"),p.push(k(c[b])?+c[b]:c[b]);l(!0)}}else O(b,+b.attr("data-val"))});o.tap(a(".mbsc-np-del",c),m)};o._processSettings=function(){D=o.settings;D.headerText=(D.headerText||"").replace("{value}","");D.cssClass=(D.cssClass||"")+" mbsc-np";D.template=D.template.replace(/\\d/,"&#100;");A=D.placeholder;F=(D.template.match(/d/g)||[]).length;w="dwb-d "+(D.disabledClass||"");(C=D.mask)&&
H.is("input")&&H.attr("type","password")};o._indexOf=function(a,b){var c;for(c=0;c<a.length;++c)if(a[c].toString()===b.toString())return c;return-1};s||o.init(i)};j.Numpad.prototype={_hasDef:!0,_hasTheme:!0,_hasLang:!0,_hasPreset:!0,_class:"numpad",_defaults:a.extend({},j.Frame.prototype._defaults,{template:"dd.dd",placeholder:"0",deleteIcon:"backspace",allowLeadingZero:!1,fill:"rtl",deleteText:"Delete",decimalSeparator:".",thousandsSeparator:",",validate:c,parseValue:c,formatValue:function(b,c,j){var k,
d=1;k=j.settings;var j=k.placeholder,g=k.template,l=b.length,m=g.length,M="";for(k=0;k<m;k++)"d"==g[m-k-1]?(M=d<=l?b[l-d]+M:j+M,d++):M=g[m-k-1]+M;a.each(c,function(a,b){M=M.replace("{"+a+"}",b)});return a("<div>"+M+"</div>").text()}})};l.themes.numpad=l.themes.frame;l.presetShort("numpad","Numpad",!1)})(jQuery);
(function(a){var b=a.mobiscroll,l={min:0,max:99.99,scale:2,prefix:"",suffix:"",returnAffix:!1};b.presets.numpad.decimal=function(k){function c(a){var b;b=a.slice(0);for(a=0;b.length;)a=10*a+b.shift();for(b=0;b<i.scale;b++)a/=10;return a}function j(a){return c(a).toFixed(i.scale).replace(".",i.decimalSeparator).replace(/\B(?=(\d{3})+(?!\d))/g,i.thousandsSeparator)}var f=a.extend({},k.settings),i=a.extend(k.settings,l,f);k.getVal=function(a){a=k._getVal(a);return b.util.isNumeric(a)?+a:a};return{template:i.prefix.replace(/d/g,
"\\d")+Array((Math.floor(i.max)+"").length+1).join("d")+(i.scale?"."+Array(i.scale+1).join("d"):"")+i.suffix.replace(/d/g,"\\d"),parseValue:function(a){var b,c;b=a||i.defaultValue;a=[];if(b&&(c=(b+"").match(/\d+\.?\d*/g))){c=(+c[0]).toFixed(i.scale);for(b=0;b<c.length;b++)"."!=c[b]&&(+c[b]?a.push(+c[b]):a.length&&a.push(0))}return a},formatValue:function(a){a=j(a);return i.returnAffix?i.prefix+a+i.suffix:a},validate:function(b){var f=j(b),d=c(b),g=[];!b.length&&!i.allowLeadingZero&&g.push(0);k.isVisible()&&
a(".mbsc-np-dsp",k._markup).html(i.prefix+f+i.suffix);return{disabled:g,invalid:d>i.max||d<i.min||(i.invalid?-1!=k._indexOf(i.invalid,d):!1)}}}}})(jQuery);
(function(a){function b(a){for(var b=0,c=1,k=0;a.length;)3<b?c=3600:1<b&&(c=60),k+=a.pop()*c*(b%2?10:1),b++;return k}var l=a.mobiscroll,k=["h","m","s"],c={min:0,max:362439,defaultValue:0,hourTextShort:"h",minuteTextShort:"m",secTextShort:"s"};l.presets.numpad.timespan=function(j){function f(b){var c,f="",i=3600;a(k).each(function(a,j){c=Math.floor(b/i);b-=c*i;i/=60;if(0<c||"s"==j&&!f)f=f+(f?" ":"")+c+q[j]});return f}var i=a.extend({},j.settings),s=a.extend(j.settings,c,i),q={h:s.hourTextShort.replace(/d/g,
"\\d"),m:s.minuteTextShort.replace(/d/g,"\\d"),s:s.secTextShort.replace(/d/g,"\\d")},i='d < span class = "mbsc-np-sup mbsc-np-time" > '+q.s+"</span>";9<s.max&&(i="d"+i);99<s.max&&(i=' < span class = "mbsc-np-ts-m" > '+(639<s.max?"d":"")+'d < /span><span class="mbsc-np-sup mbsc-np-time">'+q.m+"</span > "+i);6039<s.max&&(i='<span class="mbsc - np - ts - h ">'+(38439<s.max?"d ":"")+'d</span><span class="mbsc - np - sup mbsc - np - time ">'+q.h+" < /span>"+i);j.setVal=function(a,b,c,i){l.util.isNumeric(a)&&(a=f(a));return j._setVal(a,
b,c,i)};j.getVal=function(a){return j._hasValue||a?b(j.getArrayVal(a)):null};return{template:i,parseValue:function(b){var c,i=b||f(s.defaultValue),m=[];i&&a(k).each(function(a,b){(c=RegExp("(\\d+)"+q[b],"gi").exec(i))?(c=+c[1],9<c?(m.push(Math.floor(c/10)),
			m.push(c % 10)) : (m.length && m.push(0), (c || m.length) && m.push(c))) : m.length && (m.push(0), m.push(0))
		});
		return m
	},
	formatValue: function(a) {
		return f(b(a))
	},
	validate: function(a) {
		var c = b(a.slice(0)),
		f = [];
		a.length || f.push(0);
		return {
			disabled: f,
			invalid: c > s.max || c < s.min || (s.invalid ? -1 != j._indexOf(s.invalid, +c) : !1)
		}
	}
}
}
})(jQuery); (function(a) {
	var b = {
		timeFormat: "hh:ii A",
		amText: "am",
		pmText: "pm"
	};
	a.mobiscroll.presets.numpad.time = function(l) {
		function k(b, c) {
			var d, g = "";
			for (d = 0; d < b.length; ++d) g += b[d] + (d % 2 == (1 == b.length % 2 ? 0 : 1) && d != b.length - 1 ? ":": "");
			a.each(c,
			function(a, b) {
				g += " " + b
			});
			return g
		}
		var c = a.extend({},
		l.settings),
		j = a.extend(l.settings, b, c),
		f = j.timeFormat.split(":"),
		i = j.timeFormat.match(/a/i),
		s = i ? "a" == i[0] ? j.amText: j.amText.toUpperCase() : "",
		q = i ? "a" == i[0] ? j.pmText: j.pmText.toUpperCase() : "",
		d = 0,
		g = j.min ? "" + j.min.getHours() : "",
		O = j.max ? "" + j.max.getHours() : "",
		m = j.min ? "" + (10 > j.min.getMinutes() ? "0" + j.min.getMinutes() : j.min.getMinutes()) : "",
		M = j.max ? "" + (10 > j.max.getMinutes() ? "0" + j.max.getMinutes() : j.max.getMinutes()) : "",
		w = j.min ? "" + (10 > j.min.getSeconds() ? "0" + j.min.getSeconds() : j.min.getSeconds()) : "",
		A = j.max ? "" + (10 > j.max.getSeconds() ? "0" + j.max.getSeconds() : j.max.getSeconds()) : "";
		j.min && j.min.setFullYear(2014, 7, 20);
		j.max && j.max.setFullYear(2014, 7, 20);
		return {
			placeholder: "-",
			allowLeadingZero: !0,
			template: (3 == f.length ? "dd:dd:dd": 2 == f.length ? "dd:dd": "dd") + (i ? '<span class="mbsc-np-sup">{ampm:--}</span>': ""),
			leftButton: i ? {
				text: s,
				variable: "ampm:" + s,
				value: "00"
			}: {
				text: ":00",
				value: "00"
			},
			rightButton: i ? {
				text: q,
				variable: "ampm:" + q,
				value: "00"
			}: {
				text: ":30",
				value: "30"
			},
			parseValue: function(a) {
				var b, c = a || j.defaultValue,
				d = [];
				if (c) {
					c += "";
					if (b = c.match(/\d/g)) for (a = 0; a < b.length; a++) d.push( + b[a]);
					i && d.push("ampm:" + (c.match(RegExp(j.pmText, "gi")) ? q: s))
				}
				return d
			},
			formatValue: function(a, b) {
				return k(a, b)
			},
			validate: function(a, b) {
				var c = k(a, b),
				p = 3 <= a.length ? new Date(2014, 7, 20, "" + a[0] + (0 === a.length % 2 ? a[1] : ""), "" + a[0 === a.length % 2 ? 2 : 1] + a[0 === a.length % 2 ? 3 : 2]) : "",
				e,
				s,
				u,
				q,
				o,
				G,
				J = [];
				d = e = 2 * f.length;
				a.length || (i && (J.push(0), J.push(j.leftButton.value)), J.push(j.rightButton.value));
				if (!i && (2 > e - a.length || 1 != a[0] && (2 < a[0] || 3 < a[1]) && 2 >= e - a.length)) J.push("30"),
				J.push("00");
				if ((i ? 1 < a[0] || 2 < a[1] : 1 != a[0] && (2 < a[0] || 3 < a[1])) && a[0]) a.unshift(0),
				d = e - 1;
				if (a.length == e) for (e = 0; 9 >= e; ++e) J.push(e);
				else if (1 == a.length && i && 1 == a[0] || a.length && 0 === a.length % 2 || !i && 2 == a[0] && 3 < a[1] && 1 == a.length % 2) for (e = 6; 9 >= e; ++e) J.push(e);
				u = void 0 !== a[1] ? "" + a[0] + a[1] : "";
				q = +M == +(void 0 !== a[3] ? "" + a[2] + a[3] : 0);
				if (j.invalid) for (e = 0; e < j.invalid.length; ++e) if (s = j.invalid[e].getHours(), o = j.invalid[e].getMinutes(), G = j.invalid[e].getSeconds(), s == +u) if (2 == f.length && (10 > o ? 0 : +("" + o)[0]) == +a[2]) {
					J.push(10 > o ? o: +("" + o)[1]);
					break
				} else if ((10 > G ? 0 : +("" + G)[0]) == +a[4]) {
					J.push(10 > G ? G: +("" + G)[1]);
					break
				}
				if (j.min || j.max) {
					s = +g == +u;
					o = (u = +O == +u) && q;
					q = s && q;
					if (0 === a.length) {
						for (e = i ? 2 : 19 < g ? g[0] : 3; e <= (1 == g[0] ? 9 : g[0] - 1); ++e) J.push(e);
						if (10 <= g && (J.push(0), 2 == g[0])) for (e = 3; 9 >= e; ++e) J.push(e);
						if (O && 10 > O || g && 10 <= g) for (e = O && 10 > O ? +O[0] + 1 : 0; e < (g && 10 <= g ? g[0] : 10); ++e) J.push(e)
					}
					if (1 == a.length) {
						if (0 === a[0]) for (e = 0; e < g[0]; ++e) J.push(e);
						if (g && 0 !== a[0] && (i ? 1 == a[0] : 2 == a[0])) for (e = i ? 3 : 4; 9 >= e; ++e) J.push(e);
						if (a[0] == g[0]) for (e = 0; e < g[1]; ++e) J.push(e);
						if (a[0] == O[0] && !i) for (e = +O[1] + 1; 9 >= e; ++e) J.push(e)
					}
					if (2 == a.length && (s || u)) for (e = u ? +M[0] + 1 : 0; e < (s ? +m[0] : 10); ++e) J.push(e);
					if (3 == a.length && (u && a[2] == M[0] || s && a[2] == m[0])) for (e = u && a[2] == M[0] ? +M[1] + 1 : 0; e < (s && a[2] == m[0] ? +m[1] : 10); ++e) J.push(e);
					if (4 == a.length && (q || o)) for (e = o ? +A[0] + 1 : 0; e < (q ? +w[0] : 10); ++e) J.push(e);
					if (5 == a.length && (q && a[4] == w[0] || o && a[4] == A[0])) for (e = o && a[4] == A[0] ? +A[1] + 1 : 0; e < (q && a[4] == w[0] ? +w[1] : 10); ++e) J.push(e)
				}
				return {
					disabled: J,
					length: d,
					invalid: (i ? !RegExp("^(0?[1-9]|1[012])(:[0-5]\\d)?(:[0-5][0-9]) (?:" + j.amText + "|" + j.pmText + ")$", "i").test(c) : !/^([0-1]?[0-9]|2[0-4]):([0-5][0-9])(:[0-5][0-9])?$/.test(c)) || (j.invalid ? -1 != l._indexOf(j.invalid, p) : !1) || !((j.min ? j.min <= p: 1) && (j.max ? p <= j.max: 1))
				}
			}
		}
	}
})(jQuery); (function(a) {
	var b = a.mobiscroll,
	l = {
		dateOrder: "mdy",
		dateFormat: "mm/dd/yy",
		delimiter: "/"
	};
	b.presets.numpad.date = function(k) {
		function c(a) {
			return new Date( + ("" + a[j] + a[j + 1] + a[j + 2] + a[j + 3]), +("" + a[f] + a[f + 1]) - 1, +("" + a[i] + a[i + 1]))
		}
		var j, f, i, s, q = [];
		s = a.extend({},
		k.settings);
		var d = a.extend(k.settings, b.datetime.defaults, l, s),
		g = d.dateOrder,
		O = d.min ? "" + (d.getMonth(d.min) + 1) : 0,
		m = d.max ? "" + (d.getMonth(d.max) + 1) : 0,
		M = d.min ? "" + d.getDay(d.min) : 0,
		w = d.max ? "" + d.getDay(d.max) : 0,
		A = d.min ? "" + d.getYear(d.min) : 0,
		y = d.max ? "" + d.getYear(d.max) : 0,
		g = g.replace(/y+/gi, "yyyy"),
		g = g.replace(/m+/gi, "mm"),
		g = g.replace(/d+/gi, "dd");
		j = g.toUpperCase().indexOf("Y");
		f = g.toUpperCase().indexOf("M");
		i = g.toUpperCase().indexOf("D");
		g = "";
		q.push({
			val: j,
			n: "yyyy"
		},
		{
			val: f,
			n: "mm"
		},
		{
			val: i,
			n: "dd"
		});
		q.sort(function(a, b) {
			return a.val - b.val
		});
		a.each(q,
		function(a, b) {
			g += b.n
		});
		j = g.indexOf("y");
		f = g.indexOf("m");
		i = g.indexOf("d");
		g = "";
		for (s = 0; 8 > s; ++s) if (g += "d", s + 1 == j || s + 1 == f || s + 1 == i) g += d.delimiter;
		k.getVal = function(a) {
			return k._hasValue || a ? c(k.getArrayVal(a)) : null
		};
		return {
			placeholder: "-",
			fill: "ltr",
			allowLeadingZero: !0,
			template: g,
			parseValue: function(a) {
				var c, g = [];
				c = a || d.defaultValue;
				a = b.datetime.parseDate(d.dateFormat, c, d);
				if (c) for (c = 0; c < q.length; ++c) g = /m/i.test(q[c].n) ? g.concat(((9 > d.getMonth(a) ? "0": "") + (d.getMonth(a) + 1)).split("")) : /d/i.test(q[c].n) ? g.concat(((10 > d.getDay(a) ? "0": "") + d.getDay(a)).split("")) : g.concat((d.getYear(a) + "").split(""));
				return g
			},
			formatValue: function(a) {
				return b.datetime.formatDate(d.dateFormat, c(a), d)
			},
			validate: function(a) {
				var b = c(a),
				g,
				e,
				l,
				s,
				q = [],
				o = void 0 !== a[j + 3] ? "" + a[j] + a[j + 1] + a[j + 2] + a[j + 3] : "",
				G = void 0 !== a[f + 1] ? "" + a[f] + a[f + 1] : "",
				J = void 0 !== a[i + 1] ? "" + a[i] + a[i + 1] : "",
				S = "" + d.getMaxDayOfMonth(o || 2012, G - 1 || 0),
				K = A === o && +O === +G,
				R = y === o && +m === +G;
				if (d.invalid) for (g = 0; g < d.invalid.length; ++g) {
					e = d.getYear(d.invalid[g]);
					l = d.getMonth(d.invalid[g]);
					s = d.getDay(d.invalid[g]);
					if (e == +o && l + 1 == +G && (10 > s ? 0 : +("" + s)[0]) == +a[i]) {
						q.push(10 > s ? s: +("" + s)[1]);
						break
					}
					if (l + 1 == +G && s == +J && ("" + e).substring(0, 3) == "" + a[j] + a[j + 1] + a[j + 2]) {
						q.push(("" + e)[3]);
						break
					}
					if (e == +o && s == +J && (10 > l ? 0 : +("" + (l + 1))[0]) == +a[f]) {
						q.push(10 > l ? l: +("" + (l + 1))[1]);
						break
					}
				}
				if ("31" == J && (a.length == f || a.length == f + 1)) 1 != a[f] ? q.push(2, 4, 6, 9, 11) : q.push(1);
				"30" == J && 0 === a[f] && a.length <= f + 1 && q.push(2);
				if (a.length == f) {
					for (g = y === o && 10 > +m ? 1 : 2; 9 >= g; ++g) q.push(g);
					A === o && 10 <= +O && q.push(0)
				}
				if (a.length == f + 1) {
					if (1 == a[f]) {
						for (g = y === o ? +m[1] + 1 : 3; 9 >= g; ++g) q.push(g);
						if (A == o) for (g = 0; g < +O[1]; ++g) q.push(g)
					}
					if (0 === a[f] && (q.push(0), y === o || A === o)) for (g = y === o ? +J > +w ? +m: +m + 1 : 0; g <= (A === o ? +O - 1 : 9); ++g) q.push(g)
				}
				if (a.length == i) {
					for (g = R ? (10 < +w ? +w[0] : 0) + 1 : +S[0] + 1; 9 >= g; ++g) q.push(g);
					if (K) for (g = 0; g < (10 > +M ? 0 : M[0]); ++g) q.push(g)
				}
				if (a.length == i + 1) {
					if (3 <= a[i] || "02" == G) for (g = +S[1] + 1; 9 >= g; ++g) q.push(g);
					if (R && +w[0] == a[i]) for (g = +w[1] + 1; 9 >= g; ++g) q.push(g);
					if (K && M[0] == a[i]) for (g = 0; g < +M[1]; ++g) q.push(g);
					if (0 === a[i] && (q.push(0), R || K)) for (g = R ? +w + 1 : 1; g <= (K ? +M - 1 : 9); ++g) q.push(g)
				}
				if (void 0 !== a[j + 2] && "02" == G && "29" == J) for (e = +("" + a[j] + a[j + 1] + a[j + 2] + 0); e <= +("" + a[j] + a[j + 1] + a[j + 2] + 9); ++e) q.push(!(0 === e % 4 && 0 !== e % 100 || 0 === e % 400) ? e % 10 : "");
				if (a.length == j) {
					if (d.min) for (g = 0; g < +A[0]; ++g) q.push(g);
					if (d.max) for (g = +y[0] + 1; 9 >= g; ++g) q.push(g);
					q.push(0)
				}
				if (d.min || d.max) for (e = 1; 4 > e; ++e) if (a.length == j + e) {
					if (a[j + e - 1] == +A[e - 1] && (3 == e ? a[j + e - 2] == +A[e - 2] : 1)) for (g = 0; g < +A[e] + (3 == e && a[f + 1] && +O > +G ? 1 : 0); ++g) q.push(g);
					if (a[j + e - 1] == +y[e - 1] && (3 == e ? a[j + e - 2] == +y[e - 2] : 1)) for (g = +y[e] + (3 == e && +m < +G ? 0 : 1); 9 >= g; ++g) q.push(g)
				}
				return {
					disabled: q,
					invalid: !("Invalid Date" != b && (d.min ? d.min <= b: 1) && (d.max ? b <= d.max: 1)) || (d.invalid ? -1 != k._indexOf(d.invalid, b) : !1)
				}
			}
		}
	}
})(jQuery); (function(a) {
	var b = a.mobiscroll;
	b.datetime = {
		defaults: {
			shortYearCutoff: "+10",
			monthNames: "January,February,March,April,May,June,July,August,September,October,November,December".split(","),
			monthNamesShort: "Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),
			dayNames: "Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),
			dayNamesShort: "Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),
			dayNamesMin: "S,M,T,W,T,F,S".split(","),
			amText: "am",
			pmText: "pm",
			getYear: function(a) {
				return a.getFullYear()
			},
			getMonth: function(a) {
				return a.getMonth()
			},
			getDay: function(a) {
				return a.getDate()
			},
			getDate: function(a, b, c, j, f, i, s) {
				return new Date(a, b, c, j || 0, f || 0, i || 0, s || 0)
			},
			getMaxDayOfMonth: function(a, b) {
				return 32 - (new Date(a, b, 32)).getDate()
			},
			getWeekNumber: function(a) {
				a = new Date(a);
				a.setHours(0, 0, 0);
				a.setDate(a.getDate() + 4 - (a.getDay() || 7));
				var b = new Date(a.getFullYear(), 0, 1);
				return Math.ceil(((a - b) / 864E5 + 1) / 7)
			}
		},
		formatDate: function(l, k, c) {
			if (!k) return null;
			var c = a.extend({},
			b.datetime.defaults, c),
			j = function(a) {
				for (var b = 0; s + 1 < l.length && l.charAt(s + 1) == a;) b++,
				s++;
				return b
			},
			f = function(a, b, c) {
				b = "" + b;
				if (j(a)) for (; b.length < c;) b = "0" + b;
				return b
			},
			i = function(a, b, c, d) {
				return j(a) ? d[b] : c[b]
			},
			s,
			q,
			d = "",
			g = !1;
			for (s = 0; s < l.length; s++) if (g)"'" == l.charAt(s) && !j("'") ? g = !1 : d += l.charAt(s);
			else switch (l.charAt(s)) {
			case "d":
				d += f("d", c.getDay(k), 2);
				break;
			case "D":
				d += i("D", k.getDay(), c.dayNamesShort, c.dayNames);
				break;
			case "o":
				d += f("o", (k.getTime() - (new Date(k.getFullYear(), 0, 0)).getTime()) / 864E5, 3);
				break;
			case "m":
				d += f("m", c.getMonth(k) + 1, 2);
				break;
			case "M":
				d += i("M", c.getMonth(k), c.monthNamesShort, c.monthNames);
				break;
			case "y":
				q = c.getYear(k);
				d += j("y") ? q: (10 > q % 100 ? "0": "") + q % 100;
				break;
			case "h":
				q = k.getHours();
				d += f("h", 12 < q ? q - 12 : 0 === q ? 12 : q, 2);
				break;
			case "H":
				d += f("H", k.getHours(), 2);
				break;
			case "i":
				d += f("i", k.getMinutes(), 2);
				break;
			case "s":
				d += f("s", k.getSeconds(), 2);
				break;
			case "a":
				d += 11 < k.getHours() ? c.pmText: c.amText;
				break;
			case "A":
				d += 11 < k.getHours() ? c.pmText.toUpperCase() : c.amText.toUpperCase();
				break;
			case "'":
				j("'") ? d += "'": g = !0;
				break;
			default:
				d += l.charAt(s)
			}
			return d
		},
		parseDate: function(l, k, c) {
			var c = a.extend({},
			b.datetime.defaults, c),
			j = c.defaultValue || new Date;
			if (!l || !k) return j;
			if (k.getTime) return k;
			var k = "object" == typeof k ? k.toString() : k + "",
			f = c.shortYearCutoff,
			i = c.getYear(j),
			s = c.getMonth(j) + 1,
			q = c.getDay(j),
			d = -1,
			g = j.getHours(),
			O = j.getMinutes(),
			m = 0,
			M = -1,
			w = !1,
			A = function(a) { (a = p + 1 < l.length && l.charAt(p + 1) == a) && p++;
				return a
			},
			y = function(a) {
				A(a);
				a = k.substr(C).match(RegExp("^\\d{1," + ("@" == a ? 14 : "!" == a ? 20 : "y" == a ? 4 : "o" == a ? 3 : 2) + "}"));
				if (!a) return 0;
				C += a[0].length;
				return parseInt(a[0], 10)
			},
			D = function(a, b, c) {
				a = A(a) ? c: b;
				for (b = 0; b < a.length; b++) if (k.substr(C, a[b].length).toLowerCase() == a[b].toLowerCase()) return C += a[b].length,
				b + 1;
				return 0
			},
			C = 0,
			p;
			for (p = 0; p < l.length; p++) if (w)"'" == l.charAt(p) && !A("'") ? w = !1 : C++;
			else switch (l.charAt(p)) {
			case "d":
				q = y("d");
				break;
			case "D":
				D("D", c.dayNamesShort, c.dayNames);
				break;
			case "o":
				d = y("o");
				break;
			case "m":
				s = y("m");
				break;
			case "M":
				s = D("M", c.monthNamesShort, c.monthNames);
				break;
			case "y":
				i = y("y");
				break;
			case "H":
				g = y("H");
				break;
			case "h":
				g = y("h");
				break;
			case "i":
				O = y("i");
				break;
			case "s":
				m = y("s");
				break;
			case "a":
				M = D("a", [c.amText, c.pmText], [c.amText, c.pmText]) - 1;
				break;
			case "A":
				M = D("A", [c.amText, c.pmText], [c.amText, c.pmText]) - 1;
				break;
			case "'":
				A("'") ? C++:w = !0;
				break;
			default:
				C++
			}
			100 > i && (i += (new Date).getFullYear() - (new Date).getFullYear() % 100 + (i <= ("string" != typeof f ? f: (new Date).getFullYear() % 100 + parseInt(f, 10)) ? 0 : -100));
			if ( - 1 < d) {
				s = 1;
				q = d;
				do {
					f = 32 - (new Date(i, s - 1, 32)).getDate();
					if (q <= f) break;
					s++;
					q -= f
				} while ( 1 )
			}
			g = c.getDate(i, s - 1, q, -1 == M ? g: M && 12 > g ? g + 12 : !M && 12 == g ? 0 : g, O, m);
			return c.getYear(g) != i || c.getMonth(g) + 1 != s || c.getDay(g) != q ? j: g
		}
	};
	b.formatDate = b.datetime.formatDate;
	b.parseDate = b.datetime.parseDate
})(jQuery); (function(a, b) {
	var l = a.mobiscroll,
	k = l.classes,
	c = l.util,
	j = c.constrain,
	f = c.jsPrefix,
	i = c.prefix,
	s = c.has3d,
	q = c.getCoord,
	d = c.getPosition,
	g = c.testTouch,
	O = c.isNumeric,
	m = c.isString,
	M = window.requestAnimationFrame ||
	function(a) {
		a()
	},
	w = window.cancelAnimationFrame ||
	function() {};
	k.ScrollView = function(c, l, D) {
		function C(b) {
			ia.stopProp && b.stopPropagation(); (ia.prevDef || "mousedown" == b.type) && b.preventDefault();
			if ((!ia.lock || !Y) && g(b, this) && !E && a.mobiscroll.running) if (G && G.removeClass("mbsc-btn-a"), W = !1, Y || (G = a(b.target).closest(".mbsc-btn-e", this), G.length && !G.hasClass("mbsc-btn-d") && (W = !0, J = setTimeout(function() {
				G.addClass("mbsc-btn-a")
			},
			100))), E = !0, T = !1, Q.scrolled = Y, t = q(b, "X"), ca = q(b, "Y"), n = t, h = R = K = 0, ja = new Date, ga = +d($, ka) || 0, o(ga, 1), "mousedown" === b.type) a(document).on("mousemove", p).on("mouseup", F);
			else if ("pointerdown" === b.type) a(document).on("pointermove", p).on("pointerup", F)
		}
		function p(a) {
			if (E) {
				ia.stopProp && a.stopPropagation();
				n = q(a, "X");
				v = q(a, "Y");
				K = n - t;
				R = v - ca;
				h = ka ? R: K;
				if (W && (5 < Math.abs(R) || 5 < Math.abs(K))) clearTimeout(J),
				G.removeClass("mbsc-btn-a"),
				W = !1;
				if (Q.scrolled || !T && 5 < Math.abs(h)) Q.scrolled || ta("onGestureStart", [P]),
				Q.scrolled = !0,
				ia.liveSwipe && !ba && (ba = !0, V = M(e));
				ka || ia.scrollLock ? a.preventDefault() : Q.scrolled ? a.preventDefault() : 7 < Math.abs(R) && (T = !0, Q.scrolled = !0, Qa.trigger("touchend"))
			}
		}
		function e() {
			U && (h = j(h, -ea * U, ea * U));
			o(j(ga + h, X - L, r + L));
			ba = !1
		}
		function F(b) {
			if (E) {
				var c;
				c = new Date - ja;
				ia.stopProp && b.stopPropagation();
				w(V);
				ba = !1; ! T && Q.scrolled && (ia.momentum && s && 300 > c && (c = h / c, h = Math.max(Math.abs(h), c * c / ia.speedUnit) * (0 > h ? -1 : 1)), ta("onGestureEnd", [P]), H(h));
				W && (clearTimeout(J), G.addClass("mbsc-btn-a"), setTimeout(function() {
					G.removeClass("mbsc-btn-a")
				},
				100), !T && !Q.scrolled && ta("onBtnTap", [G]));
				"mouseup" == b.type ? a(document).off("mousemove", p).off("mouseup", F) : "pointerup" == b.type && a(document).off("pointermove", p).off("pointerup", F);
				E = !1
			}
		}
		function u(b) {
			b = b.originalEvent || b;
			h = ka ? b.deltaY || b.wheelDelta || b.detail: b.deltaX;
			ia.stopProp && b.stopPropagation();
			h && a.mobiscroll.running && (b.preventDefault(), h = 0 > h ? 20 : -20, ga = sa, ba || (ba = !0, V = M(e)), clearTimeout(Z), Z = setTimeout(function() {
				w(V);
				ba = false;
				H(h)
			},
			200))
		}
		function H(a) {
			var b;
			U && (a = j(a, -ea * U, ea * U));
			oa = Math.round((ga + a) / ea);
			b = j(oa * ea, X, r);
			if (ha) {
				if (0 > a) for (a = ha.length - 1; 0 <= a; a--) {
					if (Math.abs(b) + S >= ha[a].breakpoint) {
						oa = a;
						Ba = 2;
						b = ha[a].snap2;
						break
					}
				} else if (0 <= a) for (a = 0; a < ha.length; a++) if (Math.abs(b) <= ha[a].breakpoint) {
					oa = a;
					Ba = 1;
					b = ha[a].snap1;
					break
				}
				b = j(b, X, r)
			}
			a = ia.time || (sa < X || sa > r ? 200 : Math.max(200, Math.abs(b - sa) * ia.timeUnit));
			o(b, a)
		}
		function o(a, b, c) {
			var g = a != sa,
			h = 1 < b,
			e = function() {
				clearInterval(N);
				Y = !1;
				sa = a;
				P.posX = ka ? 0 : a;
				P.posY = ka ? a: 0;
				g && ta("onMove", [P]);
				h && (Q.scrolled = !1, ta("onAnimationEnd", [P]));
				c && c()
			};
			P = {
				posX: ka ? 0 : sa,
				posY: ka ? sa: 0,
				originX: ka ? 0 : ga,
				originY: ka ? ga: 0,
				direction: 0 < a - sa ? ka ? 270 : 360 : ka ? 90 : 180
			};
			sa = a;
			h && (P.destinationX = ka ? 0 : a, P.destinationY = ka ? a: 0, P.duration = b, P.transitionTiming = x, ta("onAnimationStart", [P]));
			s ? (la[f + "Transition"] = b ? i + "transform " + Math.round(b) + "ms " + x: "", la[f + "Transform"] = "translate3d(" + (ka ? "0," + a + "px,": a + "px,0,") + "0)") : la[B] = a + "px"; ! g && !Y || !b || 1 >= b ? e() : b && (Y = !0, clearInterval(N), N = setInterval(function() {
				var a = +d($, ka) || 0;
				P.posX = ka ? 0 : a;
				P.posY = ka ? a: 0;
				ta("onMove", [P])
			},
			100), clearTimeout(I), I = setTimeout(function() {
				e();
				s && (la[f + "Transition"] = "")
			},
			b))
		}
		var G, J, S, K, R, h, B, x, L, n, v, P, W, r, U, X, E, Y, T, V, ba, Z, N, ea, ha, ga, ja, t, ca, la, $, I, ta, ka, Q = this,
		sa = 0,
		oa = 0,
		Ba = 1,
		ia = l,
		Qa = a(c);
		k.Base.call(this, c, l, !0);
		Q.scrolled = !1;
		Q.scroll = function(b, d, g) {
			b = O(b) ? Math.round(b / ea) * ea: Math.ceil((a(b, c).length ? Math.round($.offset()[B] - a(b, c).offset()[B]) : sa) / ea) * ea;
			oa = Math.round(b / ea);
			ga = sa;
			o(j(b, X, r), d, g)
		};
		Q.refresh = function() {
			var a;
			S = ia.contSize === b ? ka ? Qa.height() : Qa.width() : ia.contSize;
			X = ia.minScroll === b ? ka ? S - $.height() : S - $.width() : ia.minScroll;
			r = ia.maxScroll === b ? 0 : ia.maxScroll; ! ka && ia.rtl && (a = r, r = -X, X = -a);
			m(ia.snap) && (ha = [], $.find(ia.snap).each(function() {
				var a = ka ? this.offsetTop: this.offsetLeft,
				b = ka ? this.offsetHeight: this.offsetWidth;
				ha.push({
					breakpoint: a + b / 2,
					snap1: -a,
					snap2: S - a - b
				})
			}));
			ea = O(ia.snap) ? ia.snap: 1;
			U = ia.snap ? ia.maxSnapScroll: 0;
			x = ia.easing;
			L = ia.elastic ? O(ia.snap) ? ea: O(ia.elastic) ? ia.elastic: 0 : 0;
			sa === b && (sa = ia.initialPos, oa = Math.round(sa / ea));
			Q.scroll(ia.snap ? ha ? ha[oa]["snap" + Ba] : oa * ea: sa)
		};
		Q.init = function(a) {
			Q._init(a);
			B = (ka = "Y" == ia.axis) ? "top": "left";
			$ = ia.moveElement || Qa.children().eq(0);
			la = $[0].style;
			Q.refresh();
			if (ia.swipe) Qa.on("touchstart mousedown pointerdown", C).on("touchmove", p).on("touchend touchcancel pointercancel", F);
			if (ia.mousewheel) Qa.on("wheel mousewheel", u);
			c.addEventListener && c.addEventListener("click",
			function(a) {
				Q.scrolled && (a.stopPropagation(), a.preventDefault())
			},
			!0)
		};
		Q.destroy = function() {
			clearInterval(N);
			Qa.off("touchstart mousedown pointerdown", C).off("touchmove", p).off("touchend touchcancel pointercancel", F).off("wheel mousewheel", u);
			Q._destroy()
		};
		ia = Q.settings;
		ta = Q.trigger;
		D || Q.init(l)
	};
	k.ScrollView.prototype = {
		_class: "scrollview",
		_defaults: {
			speedUnit: 0.0022,
			timeUnit: 0.8,
			initialPos: 0,
			axis: "Y",
			easing: "ease-out",
			stopProp: !0,
			swipe: !0,
			liveSwipe: !0,
			momentum: !0,
			elastic: !0
		}
	};
	l.presetShort("scrollview", "ScrollView", !1)
})(jQuery); (function(a, b) {
	var l = {
		invalid: [],
		showInput: !0,
		inputClass: ""
	};
	a.mobiscroll.presets.scroller.list = function(k) {
		function c(b, c, d, g) {
			for (var e, f = 0; f < c;) {
				var i = a(".dwwl" + f, b),
				j;
				e = 0;
				j = void 0;
				for (var m = d,
				k = []; e < f;) {
					var r = g[e];
					for (j in m) if (m[j].key == r) {
						m = m[j].children;
						break
					}
					e++
				}
				for (e = 0; e < m.length;) m[e].invalid && k.push(m[e].key),
				e++;
				j = k;
				for (e = 0; e < j.length; e++) a('.dw-li[data-val="' + j[e] + '"]', i).removeClass("dw-v");
				f++
			}
		}
		function j(a, b) {
			for (var c = []; a;) c[--a] = !0;
			c[b] = !1;
			return c
		}
		function f(a, c, d) {
			var g = 0,
			e, f, j = [[]],
			m = o;
			if (c) for (e = 0; e < c; e++) M ? j[0][e] = {}: j[e] = [{}];
			for (; g < a.length;) {
				M ? j[0][g] = s(m, G[g]) : j[g] = [s(m, G[g])];
				e = 0;
				for (c = b; e < m.length && c === b;) {
					if (m[e].key == a[g] && (d !== b && g <= d || d === b)) c = e;
					e++
				}
				if (c !== b && m[c].children) g++,
				m = m[c].children;
				else if ((f = i(m)) && f.children) g++,
				m = f.children;
				else break
			}
			return j
		}
		function i(a, b) {
			if (!a) return ! 1;
			for (var c = 0,
			d; c < a.length;) if (! (d = a[c++]).invalid) return b ? c - 1 : d;
			return ! 1
		}
		function s(a, b) {
			for (var c = {
				keys: [],
				values: [],
				label: b
			},
			d = 0; d < a.length;) c.values.push(a[d].value),
			c.keys.push(a[d].key),
			d++;
			return c
		}
		function q(b, c) {
			a(".dwfl", b).css("display", "").slice(c).hide()
		}
		function d(a, c) {
			var d = [],
			g = o,
			e = 0,
			f = !1,
			j,
			m;
			if (a[e] !== b && e <= c) {
				f = 0;
				j = a[e];
				for (m = b; f < g.length && m === b;) g[f].key == a[e] && !g[f].invalid && (m = f),
				f++
			} else m = i(g, !0),
			j = g[m].key;
			f = m !== b ? g[m].children: !1;
			for (d[e] = j; f;) {
				g = g[m].children;
				e++;
				if (a[e] !== b && e <= c) {
					f = 0;
					j = a[e];
					for (m = b; f < g.length && m === b;) g[f].key == a[e] && !g[f].invalid && (m = f),
					f++
				} else m = i(g, !0),
				m = !1 === m ? b: m,
				j = g[m].key;
				f = m !== b && i(g[m].children) ? g[m].children: !1;
				d[e] = j
			}
			return {
				lvl: e + 1,
				nVector: d
			}
		}
		function g(c) {
			var d = [];
			p = p > e++?p: e;
			c.children("li").each(function(c) {
				var e = a(this),
				f = e.clone();
				f.children("ul,ol").remove();
				var f = k._processMarkup ? k._processMarkup(f) : f.html().replace(/^\s\s*/, "").replace(/\s\s*$/, ""),
				i = e.attr("data-invalid") ? !0 : !1,
				c = {
					key: e.attr("data-val") === b || null === e.attr("data-val") ? c: e.attr("data-val"),
					value: f,
					invalid: i,
					children: null
				},
				e = e.children("ul,ol");
				e.length && (c.children = g(e));
				d.push(c)
			});
			e--;
			return d
		}
		var O = a.extend({},
		k.settings),
		m = a.extend(k.settings, l, O),
		O = m.layout || (/top|bottom/.test(m.display) ? "liquid": ""),
		M = "liquid" == O,
		w = m.readonly,
		A = a(this),
		y,
		D,
		C = this.id + "_dummy",
		p = 0,
		e = 0,
		F = {},
		u,
		H = [],
		o = m.wheelArray || g(A),
		G = function(a) {
			var b = [],
			c;
			for (c = 0; c < a; c++) b[c] = m.labels && m.labels[c] ? m.labels[c] : c;
			return b
		} (p),
		J = function(a) {
			var b = [],
			c;
			c = !0;
			for (var d = 0; c;) c = i(a),
			b[d++] = c.key,
			(c = c.children) && (a = c);
			return b
		} (o),
		S = f(J, p);
		a("#" + C).remove();
		m.showInput && (y = a('<input type="text" id="' + C + '" value="" class="' + m.inputClass + '" placeholder="' + (m.placeholder || "") + '" readonly />').insertBefore(A), m.anchor = y, k.attachShow(y));
		m.wheelArray || A.hide().closest(".ui-field-contain").trigger("create");
		return {
			width: 50,
			wheels: S,
			layout: O,
			headerText: !1,
			formatValue: function(a) {
				if (u === b) u = d(a, a.length).lvl;
				return a.slice(0, u).join(" ")
			},
			parseValue: function(a) {
				return a ? (a + "").split(" ") : (m.defaultValue || J).slice(0)
			},
			onBeforeShow: function() {
				var a = k.getArrayVal(true);
				H = a.slice(0);
				m.wheels = f(a, p, p);
				D = true
			},
			onValueFill: function(a) {
				u = b;
				y && y.val(a)
			},
			onShow: function(b) {
				a(".dwwl", b).on("mousedown touchstart",
				function() {
					clearTimeout(F[a(".dwwl", b).index(this)])
				})
			},
			onDestroy: function() {
				y && y.remove();
				A.show()
			},
			validate: function(a, g, e) {
				var i = [],
				l = k.getArrayVal(true),
				s = (g || 0) + 1,
				n,
				v;
				if (g !== b && H[g] != l[g] || g === b && !D) {
					m.wheels = f(l, null, g);
					v = d(l, g === b ? l.length: g);
					u = v.lvl;
					for (n = 0; n < l.length; n++) l[n] = v.nVector[n] || 0;
					for (; s < v.lvl;) i.push(s++);
					if (i.length) {
						m.readonly = j(p, g);
						clearTimeout(F[g]);
						F[g] = setTimeout(function() {
							D = true;
							q(a, v.lvl);
							H = l.slice(0);
							k.changeWheel(i, g === b ? e: 0, g !== b);
							m.readonly = w
						},
						g === b ? 0 : e * 1E3);
						return false
					}
				} else {
					v = d(l, l.length);
					u = v.lvl
				}
				H = l.slice(0);
				c(a, v.lvl, o, l);
				q(a, v.lvl);
				D = false
			}
		}
	}
})(jQuery); (function(a, b) {
	var l = a.mobiscroll,
	k = l.datetime,
	c = new Date,
	j = {
		startYear: c.getFullYear() - 100,
		endYear: c.getFullYear() + 1,
		separator: " ",
		dateFormat: "mm/dd/yy",
		dateOrder: "mmddy",
		timeWheels: "hhiiA",
		timeFormat: "hh:ii A",
		dayText: "Day",
		monthText: "Month",
		yearText: "Year",
		hourText: "Hours",
		minuteText: "Minutes",
		ampmText: "&nbsp;",
		secText: "Seconds",
		nowText: "Now"
	},
	f = function(c) {
		function f(a, c, d) {
			return P[c] !== b ? +a[P[c]] : W[c] !== b ? W[c] : d !== b ? d: r[c](N)
		}
		function q(a, b, c, d) {
			a.push({
				values: c,
				keys: b,
				label: d
			})
		}
		function d(a, b, c, d) {
			return Math.min(d, Math.floor(a / b) * b + c)
		}
		function g(a) {
			if (null === a) return a;
			var b = f(a, "y"),
			c = f(a, "m"),
			d = Math.min(f(a, "d"), x.getMaxDayOfMonth(b, c)),
			g = f(a, "h", 0);
			return x.getDate(b, c, d, f(a, "a", 0) ? g + 12 : g, f(a, "i", 0), f(a, "s", 0), f(a, "u", 0))
		}
		function O(a, b) {
			var c, d, e = !1,
			f = !1,
			h = 0,
			i = 0;
			ja = g(D(ja));
			t = g(D(t));
			if (m(a)) return a;
			a < ja && (a = ja);
			a > t && (a = t);
			d = c = a;
			if (2 !== b) for (e = m(c); ! e && c < t;) c = new Date(c.getTime() + 864E5),
			e = m(c),
			h++;
			if (1 !== b) for (f = m(d); ! f && d > ja;) d = new Date(d.getTime() - 864E5),
			f = m(d),
			i++;
			return 1 === b && e ? c: 2 === b && f ? d: i <= h && f ? d: c
		}
		function m(a) {
			return a < ja || a > t ? !1 : M(a, X) ? !0 : M(a, U) ? !1 : !0
		}
		function M(a, b) {
			var c, d, g;
			if (b) for (d = 0; d < b.length; d++) if (c = b[d], g = c + "", !c.start) if (c.getTime) {
				if (a.getFullYear() == c.getFullYear() && a.getMonth() == c.getMonth() && a.getDate() == c.getDate()) return ! 0
			} else if (g.match(/w/i)) {
				if (g = +g.replace("w", ""), g == a.getDay()) return ! 0
			} else if (g = g.split("/"), g[1]) {
				if (g[0] - 1 == a.getMonth() && g[1] == a.getDate()) return ! 0
			} else if (g[0] == a.getDate()) return ! 0;
			return ! 1
		}
		function w(a, b, c, d, g, e, f) {
			var h, i, m;
			if (a) for (h = 0; h < a.length; h++) if (i = a[h], m = i + "", !i.start) if (i.getTime) x.getYear(i) == b && x.getMonth(i) == c && (e[x.getDay(i) - 1] = f);
			else if (m.match(/w/i)) {
				m = +m.replace("w", "");
				for (o = m - d; o < g; o += 7) 0 <= o && (e[o] = f)
			} else m = m.split("/"),
			m[1] ? m[0] - 1 == c && (e[m[1] - 1] = f) : e[m[0] - 1] = f
		}
		function A(c, g, e, f, i, m, j, k, l) {
			var E, r, o, q, t, p, s, Z, w, v, W, I, P, A, u, N, $, M, ta = {},
			F = {
				h: ea,
				i: ha,
				s: ga,
				a: 1
			},
			C = x.getDate(i, m, j),
			L = ["a", "h", "i", "s"];
			c && (a.each(c,
			function(a, b) {
				if (b.start && (b.apply = !1, E = b.d, r = E + "", o = r.split("/"), E && (E.getTime && i == x.getYear(E) && m == x.getMonth(E) && j == x.getDay(E) || !r.match(/w/i) && (o[1] && j == o[1] && m == o[0] - 1 || !o[1] && j == o[0]) || r.match(/w/i) && C.getDay() == +r.replace("w", "")))) b.apply = !0,
				ta[C] = !0
			}), a.each(c,
			function(c, f) {
				W = A = P = 0;
				I = b;
				s = p = !0;
				u = !1;
				if (f.start && (f.apply || !f.d && !ta[C])) {
					q = f.start.split(":");
					t = f.end.split(":");
					for (v = 0; 3 > v; v++) q[v] === b && (q[v] = 0),
					t[v] === b && (t[v] = 59),
					q[v] = +q[v],
					t[v] = +t[v];
					q.unshift(11 < q[0] ? 1 : 0);
					t.unshift(11 < t[0] ? 1 : 0);
					ba && (12 <= q[1] && (q[1] -= 12), 12 <= t[1] && (t[1] -= 12));
					for (v = 0; v < g; v++) if (n[v] !== b) {
						Z = d(q[v], F[L[v]], h[L[v]], B[L[v]]);
						w = d(t[v], F[L[v]], h[L[v]], B[L[v]]);
						M = $ = N = 0;
						ba && 1 == v && (N = q[0] ? 12 : 0, $ = t[0] ? 12 : 0, M = n[0] ? 12 : 0);
						p || (Z = 0);
						s || (w = B[L[v]]);
						if ((p || s) && Z + N < n[v] + M && n[v] + M < w + $) u = !0;
						n[v] != Z && (p = !1);
						n[v] != w && (s = !1)
					}
					if (!l) for (v = g + 1; 4 > v; v++) 0 < q[v] && (P = F[e]),
					t[v] < B[L[v]] && (A = F[e]);
					u || (Z = d(q[g], F[e], h[e], B[e]) + P, w = d(t[g], F[e], h[e], B[e]) - A, p && (W = 0 > Z ? 0 : Z > B[e] ? a(".dw-li", k).length: y(k, Z) + 0), s && (I = 0 > w ? 0 : w > B[e] ? a(".dw-li", k).length: y(k, w) + 1));
					if (p || s || u) l ? a(".dw-li", k).slice(W, I).addClass("dw-v") : a(".dw-li", k).slice(W, I).removeClass("dw-v")
				}
			}))
		}
		function y(b, c) {
			return a(".dw-li", b).index(a('.dw-li[data-val="' + c + '"]', b))
		}
		function D(c, d) {
			var g = [];
			if (null === c || c === b) return c;
			a.each("y,m,d,a,h,i,s,u".split(","),
			function(a, e) {
				P[e] !== b && (g[P[e]] = r[e](c));
				d && (W[e] = r[e](c))
			});
			return g
		}
		function C(a) {
			var b, c, d, g = [];
			if (a) {
				for (b = 0; b < a.length; b++) if (c = a[b], c.start && c.start.getTime) for (d = new Date(c.start); d <= c.end;) g.push(new Date(d.getFullYear(), d.getMonth(), d.getDate())),
				d.setDate(d.getDate() + 1);
				else g.push(c);
				return g
			}
			return a
		}
		var p = a(this),
		e = {},
		F;
		if (p.is("input")) {
			switch (p.attr("type")) {
			case "date":
				F = "yy-mm-dd";
				break;
			case "datetime":
				F = "yy-mm-ddTHH:ii:ssZ";
				break;
			case "datetime-local":
				F = "yy-mm-ddTHH:ii:ss";
				break;
			case "month":
				F = "yy-mm";
				e.dateOrder = "mmyy";
				break;
			case "time":
				F = "HH:ii:ss"
			}
			var u = p.attr("min"),
			p = p.attr("max");
			u && (e.minDate = k.parseDate(F, u));
			p && (e.maxDate = k.parseDate(F, p))
		}
		var H, o, G, J, S, K, R, h, B, u = a.extend({},
		c.settings),
		x = a.extend(c.settings, l.datetime.defaults, j, e, u),
		L = 0,
		n = [],
		e = [],
		v = [],
		P = {},
		W = {},
		r = {
			y: function(a) {
				return x.getYear(a)
			},
			m: function(a) {
				return x.getMonth(a)
			},
			d: function(a) {
				return x.getDay(a)
			},
			h: function(a) {
				a = a.getHours();
				a = ba && 12 <= a ? a - 12 : a;
				return d(a, ea, ca, I)
			},
			i: function(a) {
				return d(a.getMinutes(), ha, la, ta)
			},
			s: function(a) {
				return d(a.getSeconds(), ga, $, ka)
			},
			u: function(a) {
				return a.getMilliseconds()
			},
			a: function(a) {
				return V && 11 < a.getHours() ? 1 : 0
			}
		},
		U = x.invalid,
		X = x.valid,
		u = x.preset,
		E = x.dateOrder,
		Y = x.timeWheels,
		T = E.match(/D/),
		V = Y.match(/a/i),
		ba = Y.match(/h/),
		Z = "datetime" == u ? x.dateFormat + x.separator + x.timeFormat: "time" == u ? x.timeFormat: x.dateFormat,
		N = new Date,
		p = x.steps || {},
		ea = p.hour || x.stepHour || 1,
		ha = p.minute || x.stepMinute || 1,
		ga = p.second || x.stepSecond || 1,
		p = p.zeroBased,
		ja = x.minDate || new Date(x.startYear, 0, 1),
		t = x.maxDate || new Date(x.endYear, 11, 31, 23, 59, 59),
		ca = p ? 0 : ja.getHours() % ea,
		la = p ? 0 : ja.getMinutes() % ha,
		$ = p ? 0 : ja.getSeconds() % ga,
		I = Math.floor(((ba ? 11 : 23) - ca) / ea) * ea + ca,
		ta = Math.floor((59 - la) / ha) * ha + la,
		ka = Math.floor((59 - la) / ha) * ha + la;
		F = F || Z;
		if (u.match(/date/i)) {
			a.each(["y", "m", "d"],
			function(a, b) {
				H = E.search(RegExp(b, "i")); - 1 < H && v.push({
					o: H,
					v: b
				})
			});
			v.sort(function(a, b) {
				return a.o > b.o ? 1 : -1
			});
			a.each(v,
			function(a, b) {
				P[b.v] = a
			});
			p = [];
			for (o = 0; 3 > o; o++) if (o == P.y) {
				L++;
				J = [];
				G = [];
				S = x.getYear(ja);
				K = x.getYear(t);
				for (H = S; H <= K; H++) G.push(H),
				J.push((E.match(/yy/i) ? H: (H + "").substr(2, 2)) + (x.yearSuffix || ""));
				q(p, G, J, x.yearText)
			} else if (o == P.m) {
				L++;
				J = [];
				G = [];
				for (H = 0; 12 > H; H++) S = E.replace(/[dy]/gi, "").replace(/mm/, (9 > H ? "0" + (H + 1) : H + 1) + (x.monthSuffix || "")).replace(/m/, H + 1 + (x.monthSuffix || "")),
				G.push(H),
				J.push(S.match(/MM/) ? S.replace(/MM/, '<span class="dw-mon">' + x.monthNames[H] + "</span>") : S.replace(/M/, '<span class="dw-mon">' + x.monthNamesShort[H] + "</span>"));
				q(p, G, J, x.monthText)
			} else if (o == P.d) {
				L++;
				J = [];
				G = [];
				for (H = 1; 32 > H; H++) G.push(H),
				J.push((E.match(/dd/i) && 10 > H ? "0" + H: H) + (x.daySuffix || ""));
				q(p, G, J, x.dayText)
			}
			e.push(p)
		}
		if (u.match(/time/i)) {
			R = !0;
			v = [];
			a.each(["h", "i", "s", "a"],
			function(a, b) {
				a = Y.search(RegExp(b, "i")); - 1 < a && v.push({
					o: a,
					v: b
				})
			});
			v.sort(function(a, b) {
				return a.o > b.o ? 1 : -1
			});
			a.each(v,
			function(a, b) {
				P[b.v] = L + a
			});
			p = [];
			for (o = L; o < L + 4; o++) if (o == P.h) {
				L++;
				J = [];
				G = [];
				for (H = ca; H < (ba ? 12 : 24); H += ea) G.push(H),
				J.push(ba && 0 === H ? 12 : Y.match(/hh/i) && 10 > H ? "0" + H: H);
				q(p, G, J, x.hourText)
			} else if (o == P.i) {
				L++;
				J = [];
				G = [];
				for (H = la; 60 > H; H += ha) G.push(H),
				J.push(Y.match(/ii/) && 10 > H ? "0" + H: H);
				q(p, G, J, x.minuteText)
			} else if (o == P.s) {
				L++;
				J = [];
				G = [];
				for (H = $; 60 > H; H += ga) G.push(H),
				J.push(Y.match(/ss/) && 10 > H ? "0" + H: H);
				q(p, G, J, x.secText)
			} else o == P.a && (L++, u = Y.match(/A/), q(p, [0, 1], u ? [x.amText.toUpperCase(), x.pmText.toUpperCase()] : [x.amText, x.pmText], x.ampmText));
			e.push(p)
		}
		c.getVal = function(a) {
			return c._hasValue || a ? g(c.getArrayVal(a)) : null
		};
		c.setDate = function(a, b, d, g, e) {
			c.setArrayVal(D(a), b, e, g, d)
		};
		c.getDate = c.getVal;
		c.format = Z;
		c.order = P;
		c.handlers.now = function() {
			c.setDate(new Date, !1, 0.3, !0, !0)
		};
		c.buttons.now = {
			text: x.nowText,
			handler: "now"
		};
		U = C(U);
		X = C(X);
		h = {
			y: ja.getFullYear(),
			m: 0,
			d: 1,
			h: ca,
			i: la,
			s: $,
			a: 0
		};
		B = {
			y: t.getFullYear(),
			m: 11,
			d: 31,
			h: I,
			i: ta,
			s: ka,
			a: 1
		};
		return {
			wheels: e,
			headerText: x.headerText ?
			function() {
				return k.formatDate(Z, g(c.getArrayVal(!0)), x)
			}: !1,
			formatValue: function(a) {
				return k.formatDate(F, g(a), x)
			},
			parseValue: function(a) {
				a || (W = {});
				return D(a ? k.parseDate(F, a, x) : x.defaultValue || new Date, !!a && !!a.getTime)
			},
			validate: function(d, e, m, j) {
				var e = O(g(c.getArrayVal(!0)), j),
				k = D(e),
				l = f(k, "y"),
				v = f(k, "m"),
				q = !0,
				o = !0;
				a.each("y,m,d,a,h,i,s".split(","),
				function(c, g) {
					if (P[g] !== b) {
						var e = h[g],
						i = B[g],
						m = 31,
						j = f(k, g),
						n = a(".dw-ul", d).eq(P[g]);
						if (g == "d") {
							i = m = x.getMaxDayOfMonth(l, v);
							T && a(".dw-li", n).each(function() {
								var b = a(this),
								c = b.data("val"),
								d = x.getDate(l, v, c).getDay(),
								c = E.replace(/[my]/gi, "").replace(/dd/, (c < 10 ? "0" + c: c) + (x.daySuffix || "")).replace(/d/, c + (x.daySuffix || ""));
								a(".dw-i", b).html(c.match(/DD/) ? c.replace(/DD/, '<span class="dw-day">' + x.dayNames[d] + "</span>") : c.replace(/D/, '<span class="dw-day">' + x.dayNamesShort[d] + "</span>"))
							})
						}
						q && ja && (e = r[g](ja));
						o && t && (i = r[g](t));
						if (g != "y") {
							var p = y(n, e),
							Z = y(n, i);
							a(".dw-li", n).removeClass("dw-v").slice(p, Z + 1).addClass("dw-v");
							g == "d" && a(".dw-li", n).removeClass("dw-h").slice(m).addClass("dw-h")
						}
						j < e && (j = e);
						j > i && (j = i);
						q && (q = j == e);
						o && (o = j == i);
						if (g == "d") {
							e = x.getDate(l, v, 1).getDay();
							i = {};
							w(U, l, v, e, m, i, 1);
							w(X, l, v, e, m, i, 0);
							a.each(i,
							function(b, c) {
								c && a(".dw-li", n).eq(b).removeClass("dw-v")
							})
						}
					}
				});
				R && a.each(["a", "h", "i", "s"],
				function(g, e) {
					var h = f(k, e),
					m = f(k, "d"),
					E = a(".dw-ul", d).eq(P[e]);
					P[e] !== b && (A(U, g, e, k, l, v, m, E, 0), A(X, g, e, k, l, v, m, E, 1), n[g] = +c.getValidCell(h, E, j).val)
				});
				c._tempWheelArray = k
			}
		}
	};
	a.each(["date", "time", "datetime"],
	function(a, b) {
		l.presets.scroller[b] = f
	})
})(jQuery); (function(a, b, l, k) {
	var c = a.mobiscroll,
	j = c.presets.scroller,
	f = c.util,
	i = f.has3d,
	s = f.jsPrefix,
	q = f.testTouch,
	d = {
		controls: ["calendar"],
		firstDay: 0,
		weekDays: "short",
		maxMonthWidth: 170,
		months: 1,
		preMonths: 1,
		highlight: !0,
		highlightNow: !0,
		swipe: !0,
		liveSwipe: !0,
		divergentDayChange: !0,
		quickNav: !0,
		navigation: "yearMonth",
		todayClass: "dw-cal-today",
		btnCalPrevClass: "mbsc-ic mbsc-ic-arrow-left6",
		btnCalNextClass: "mbsc-ic mbsc-ic-arrow-right6",
		dateText: "Date",
		timeText: "Time",
		calendarText: "Calendar",
		todayText: "Today",
		prevMonthText: "Previous Month",
		nextMonthText: "Next Month",
		prevYearText: "Previous Year",
		nextYearText: "Next Year"
	};
	j.calbase = function(b) {
		function O(b, c, d) {
			var g, e, f, h, i = {},
			m = qa + Ia;
			b && a.each(b,
			function(a, b) {
				g = b.d || b.start || b;
				e = g + "";
				if (b.start && b.end) for (h = new Date(b.start); h <= b.end;) f = new Date(h.getFullYear(), h.getMonth(), h.getDate()),
				i[f] = i[f] || [],
				i[f].push(b),
				h.setDate(h.getDate() + 1);
				else if (g.getTime) f = new Date(g.getFullYear(), g.getMonth(), g.getDate()),
				i[f] = i[f] || [],
				i[f].push(b);
				else if (e.match(/w/i)) {
					var j = +e.replace("w", ""),
					k = 0,
					n = z.getDate(c, d - qa - pa, 1).getDay();
					1 < z.firstDay - n + 1 && (k = 7);
					for (v = 0; v < 5 * Ga; v++) f = z.getDate(c, d - qa - pa, 7 * v - k - n + 1 + j),
					i[f] = i[f] || [],
					i[f].push(b)
				} else if (e = e.split("/"), e[1]) 11 <= d + m && (f = z.getDate(c + 1, e[0] - 1, e[1]), i[f] = i[f] || [], i[f].push(b)),
				1 >= d - m && (f = z.getDate(c - 1, e[0] - 1, e[1]), i[f] = i[f] || [], i[f].push(b)),
				f = z.getDate(c, e[0] - 1, e[1]),
				i[f] = i[f] || [],
				i[f].push(b);
				else for (v = 0; v < Ga; v++) f = z.getDate(c, d - qa - pa + v, e[0]),
				z.getDay(f) == e[0] && (i[f] = i[f] || [], i[f].push(b))
			});
			return i
		}
		function m(a, c) {
			Ja = O(z.invalid, a, c);
			Db = O(z.valid, a, c);
			b.onGenMonth(a, c)
		}
		function M(a, b, c, d, e, g, f) {
			var h = '<div class="dw-cal-h dw-cal-sc-c dw-cal-' + a + "-c " + (z.calendarClass || "") + '"><div class="dw-cal-sc"><div class="dw-cal-sc-p"><div class="dw-cal-sc-tbl"><div class="dw-cal-sc-row">';
			for (n = 1; n <= b; n++) h = 12 >= n || n > c ? h + '<div class="dw-cal-sc-m-cell dw-cal-sc-cell dw-cal-sc-empty"><div class="dw-i">&nbsp;</div></div>': h + ('<div tabindex="0" role="button"' + (g ? ' aria-label="' + g[n - 13] + '"': "") + ' class="dwb-e dwb-nhl dw-cal-sc-m-cell dw-cal-sc-cell dw-cal-' + a + '-s" data-val=' + (d + n - 13) + '><div class="dw-i dw-cal-sc-tbl"><div class="dw-cal-sc-cell">' + (f ? f[n - 13] : d + n - 13 + e) + "</div></div></div>"),
			n < b && (0 === n % 12 ? h += '</div></div></div><div class="dw-cal-sc-p" style="' + (Ka ? "top": Ya ? "right": "left") + ":" + 100 * Math.round(n / 12) + '%"><div class="dw-cal-sc-tbl"><div class="dw-cal-sc-row">': 0 === n % 3 && (h += '</div><div class="dw-cal-sc-row">'));
			return h + "</div></div></div></div></div>"
		}
		function w(c, d) {
			var e, f, h, i, m, j, n, l, E, r, v, q, o, t, p = 1,
			Z = 0;
			e = z.getDate(c, d, 1);
			var w = z.getYear(e),
			s = z.getMonth(e),
			Q = null === z.defaultValue && !b._hasValue ? null: b.getDate(!0),
			W = z.getDate(w, s, 1).getDay(),
			I = '<div class="dw-cal-table">',
			P = '<div class="dw-week-nr-c">';
			1 < z.firstDay - W + 1 && (Z = 7);
			for (t = 0; 42 > t; t++) o = t + z.firstDay - Z,
			e = z.getDate(w, s, o - W + 1),
			f = e.getFullYear(),
			h = e.getMonth(),
			i = e.getDate(),
			m = z.getMonth(e),
			j = z.getDay(e),
			q = z.getMaxDayOfMonth(f, h),
			n = f + "-" + h + "-" + i,
			h = a.extend({
				valid: e < new Date(Qa.getFullYear(), Qa.getMonth(), Qa.getDate()) || e > ya ? !1 : Ja[e] === k || Db[e] !== k,
				selected: Q && Q.getFullYear() === f && Q.getMonth() === h && Q.getDate() === i
			},
			b.getDayProps(e, Q)),
			l = h.valid,
			E = h.selected,
			f = h.cssClass,
			r = e.getTime() === (new Date).setHours(0, 0, 0, 0),
			v = m !== s,
			Ab[n] = h,
			0 === t % 7 && (I += (t ? "</div>": "") + '<div class="dw-cal-row' + (z.highlight && Q && 0 <= Q - e && 6048E5 > Q - e ? " dw-cal-week-hl": "") + '">'),
			mb && 1 == e.getDay() && ("month" == mb && v && 1 < p ? p = 1 == i ? 1 : 2 : "year" == mb && (p = z.getWeekNumber(e)), P += '<div class="dw-week-nr"><div class="dw-week-nr-i">' + p + "</div></div>", p++),
			I += '<div role="button" tabindex="-1" aria-label="' + (r ? z.todayText + ", ": "") + z.dayNames[e.getDay()] + ", " + z.monthNames[m] + " " + j + " " + (h.ariaLabel ? ", " + h.ariaLabel: "") + '"' + (v && !Xa ? ' aria-hidden="true"': "") + (E ? ' aria-selected="true"': "") + (l ? "": ' aria-disabled="true"') + ' data-day="' + o % 7 + '" data-full="' + n + '"class="dw-cal-day ' + (z.dayClass || "") + (E ? " dw-sel": "") + (r ? " " + z.todayClass: "") + (f ? " " + f: "") + (1 == j ? " dw-cal-day-first": "") + (j == q ? " dw-cal-day-last": "") + (v ? " dw-cal-day-diff": "") + (l ? " dw-cal-day-v dwb-e dwb-nhl": " dw-cal-day-inv") + '"><div class="dw-i ' + (E ? ra: "") + " " + (z.innerDayClass || "") + '"><div class="dw-cal-day-fg">' + j + "</div>" + (h.markup || "") + '<div class="dw-cal-day-frame"></div></div></div>';
			return I + ("</div></div>" + P + "</div>")
		}
		function A(b, c, d) {
			var e = z.getDate(b, c, 1),
			g = z.getYear(e),
			e = z.getMonth(e),
			f = g + Ea;
			if (ab) {
				cb && cb.removeClass("dw-sel").removeAttr("aria-selected").find(".dw-i").removeClass(ra);
				rb && rb.removeClass("dw-sel").removeAttr("aria-selected").find(".dw-i").removeClass(ra);
				cb = a('.dw-cal-year-s[data-val="' + g + '"]', r).addClass("dw-sel").attr("aria-selected", "true");
				rb = a('.dw-cal-month-s[data-val="' + e + '"]', r).addClass("dw-sel").attr("aria-selected", "true");
				cb.find(".dw-i").addClass(ra);
				rb.find(".dw-i").addClass(ra);
				Ua && Ua.scroll(cb, d);
				a(".dw-cal-month-s", r).removeClass("dwb-d");
				if (g === ka) for (n = 0; n < sa; n++) a('.dw-cal-month-s[data-val="' + n + '"]', r).addClass("dwb-d");
				if (g === Q) for (n = oa + 1; 12 >= n; n++) a('.dw-cal-month-s[data-val="' + n + '"]', r).addClass("dwb-d")
			}
			1 == I.length && I.attr("aria-label", g).html(f);
			for (n = 0; n < na; ++n) e = z.getDate(b, c - pa + n, 1),
			g = z.getYear(e),
			e = z.getMonth(e),
			f = g + Ea,
			a(la[n]).attr("aria-label", z.monthNames[e] + (Fa ? "": " " + g)).html((!Fa && ta < $ ? f + " ": "") + ja[e] + (!Fa && ta > $ ? " " + f: "")),
			1 < I.length && a(I[n]).html(f);
			z.getDate(b, c - pa - 1, 1) < Ba ? D(a(".dw-cal-prev-m", r)) : y(a(".dw-cal-prev-m", r));
			z.getDate(b, c + na - pa, 1) > ia ? D(a(".dw-cal-next-m", r)) : y(a(".dw-cal-next-m", r));
			z.getDate(b, c, 1).getFullYear() <= Ba.getFullYear() ? D(a(".dw-cal-prev-y", r)) : y(a(".dw-cal-prev-y", r));
			z.getDate(b, c, 1).getFullYear() >= ia.getFullYear() ? D(a(".dw-cal-next-y", r)) : y(a(".dw-cal-next-y", r))
		}
		function y(a) {
			a.removeClass(qb).find(".dw-cal-btn-txt").removeAttr("aria-disabled")
		}
		function D(a) {
			a.addClass(qb).find(".dw-cal-btn-txt").attr("aria-disabled", "true")
		}
		function C(c, d) {
			if (ba && ("calendar" === Va || d)) {
				var e, f, h = z.getDate(ua, ma, 1),
				i = Math.abs(12 * (z.getYear(c) - z.getYear(h)) + z.getMonth(c) - z.getMonth(h));
				b.needsSlide && i && (ua = z.getYear(c), ma = z.getMonth(c), c > h ? (f = i > qa - pa + na - 1, ma -= f ? 0 : i - qa, e = "next") : c < h && (f = i > qa + pa, ma += f ? 0 : i - qa, e = "prev"), u(ua, ma, e, Math.min(i, qa), f, !0));
				d || (b.trigger("onDayHighlight", [c]), z.highlight && (a(".dw-sel .dw-i", X).removeClass(ra), a(".dw-sel", X).removeClass("dw-sel").removeAttr("aria-selected"), a(".dw-cal-week-hl", X).removeClass("dw-cal-week-hl"), (null !== z.defaultValue || b._hasValue) && a('.dw-cal-day[data-full="' + c.getFullYear() + "-" + c.getMonth() + "-" + c.getDate() + '"]', X).addClass("dw-sel").attr("aria-selected", "true").find(".dw-i").addClass(ra).closest(".dw-cal-row").addClass("dw-cal-week-hl")));
				b.needsSlide = !0
			}
		}
		function p(a, c) {
			m(a, c);
			for (n = 0; n < Ga; n++) xa[n].html(w(a, c - pa - qa + n));
			F();
			b.needsRefresh = !1;
			b.trigger("onMonthLoaded", [a, c])
		}
		function e(b, c, d) {
			var e = qa,
			g = qa;
			if (d) {
				for (; g && z.getDate(b, c + e + na - pa - 1, 1) > ia;) g--;
				for (; e && z.getDate(b, c - g - pa, 1) < Ba;) e--
			}
			a.extend(t.settings, {
				contSize: na * Y,
				snap: Y,
				minScroll: T - (Ya ? e: g) * Y,
				maxScroll: T + (Ya ? g: e) * Y
			});
			t.refresh()
		}
		function F() {
			mb && ea.html(a(".dw-week-nr-c", xa[qa]).html());
			a(".dw-cal-slide-a .dw-cal-day", E).attr("tabindex", 0)
		}
		function u(c, d, f, h, i, j, k) {
			c && fb.push({
				y: c,
				m: d,
				dir: f,
				slideNr: h,
				load: i,
				active: j,
				callback: k
			});
			if (!Za) {
				var l = fb.shift(),
				c = l.y,
				d = l.m,
				f = "next" === l.dir,
				h = l.slideNr,
				i = l.load,
				j = l.active,
				k = l.callback || Bb,
				l = z.getDate(c, d, 1),
				c = z.getYear(l),
				d = z.getMonth(l);
				Za = !0;
				b.changing = !0;
				b.trigger("onMonthChange", [c, d]);
				m(c, d);
				if (i) for (n = 0; n < na; n++) xa[f ? Ga - na + n: n].html(w(c, d - pa + n));
				j && za.addClass("dw-cal-slide-a");
				setTimeout(function() {
					b.ariaMessage(z.monthNames[d] + " " + c);
					A(c, d, 200);
					T = f ? T - Y * h * gb: T + Y * h * gb;
					t.scroll(T, ga ? 200 : 0,
					function() {
						setTimeout(function() {
							var m;
							if (xa.length) {
								za.removeClass("dw-cal-slide-a").attr("aria-hidden", "true");
								if (f) {
									m = xa.splice(0, h);
									for (n = 0; n < h; n++) xa.push(m[n]),
									o(xa[xa.length - 1], +xa[xa.length - 2].data("curr") + 100 * gb)
								} else {
									m = xa.splice(Ga - h, h);
									for (n = h - 1; 0 <= n; n--) xa.unshift(m[n]),
									o(xa[0], +xa[1].data("curr") - 100 * gb)
								}
								for (n = 0; n < h; n++) xa[f ? Ga - h + n: n].html(w(c, d - pa - qa + n + (f ? Ga - h: 0))),
								i && xa[f ? n: Ga - h + n].html(w(c, d - pa - qa + n + (f ? 0 : Ga - h)));
								for (n = 0; n < na; n++) xa[qa + n].addClass("dw-cal-slide-a").removeAttr("aria-hidden");
								e(c, d, !0);
								Za = !1
							}
							fb.length ? setTimeout(function() {
								u()
							},
							10) : (ua = c, ma = d, b.changing = !1, a(".dw-cal-day", E).attr("tabindex", -1), F(), b.needsRefresh ? b.isVisible() && ba && p(ua, ma) : b.trigger("onMonthLoaded", [c, d]), k())
						},
						ga ? 0 : 200)
					})
				},
				10)
			}
		}
		function H() {
			var c = a(this),
			d = b.live,
			e = b.getDate(!0),
			f = c.attr("data-full"),
			h = f.split("-"),
			h = new Date(h[0], h[1], h[2]),
			e = new Date(h.getFullYear(), h.getMonth(), h.getDate(), e.getHours(), e.getMinutes(), e.getSeconds()),
			i = c.hasClass("dw-sel");
			if ((Xa || !c.hasClass("dw-cal-day-diff")) && !1 !== b.trigger("onDayChange", [a.extend(Ab[f], {
				date: e,
				cell: this,
				selected: i
			})])) b.needsSlide = !1,
			V = !0,
			b.setDate(e, d, 0.2, !d, !0),
			z.divergentDayChange && (Ta = !0, h < z.getDate(ua, ma - pa, 1) ? J() : h > z.getDate(ua, ma - pa + na, 0) && G(), Ta = !1)
		}
		function o(a, b) {
			a.data("curr", b);
			i ? a[0].style[s + "Transform"] = "translate3d(" + (Ka ? "0," + b + "%,": b + "%,0,") + "0)": a[0].style[Ka ? "top": "left"] = b + "%"
		}
		function G() {
			Ta && z.getDate(ua, ma + na - pa, 1) <= ia && a.mobiscroll.running && u(ua, ++ma, "next", 1, !1, !0, G)
		}
		function J() {
			Ta && z.getDate(ua, ma - pa - 1, 1) >= Ba && a.mobiscroll.running && u(ua, --ma, "prev", 1, !1, !0, J)
		}
		function S(b) {
			Ta && z.getDate(ua, ma, 1) <= z.getDate(z.getYear(ia) - 1, z.getMonth(ia) - Ia, 1) && a.mobiscroll.running ? u(++ua, ma, "next", qa, !0, !0,
			function() {
				S(b)
			}) : Ta && !b.hasClass("dwb-d") && a.mobiscroll.running && u(z.getYear(ia), z.getMonth(ia) - Ia, "next", qa, !0, !0)
		}
		function K(b) {
			Ta && z.getDate(ua, ma, 1) >= z.getDate(z.getYear(Ba) + 1, z.getMonth(Ba) + pa, 1) && a.mobiscroll.running ? u(--ua, ma, "prev", qa, !0, !0,
			function() {
				K(b)
			}) : Ta && !b.hasClass("dwb-d") && a.mobiscroll.running && u(z.getYear(Ba), z.getMonth(Ba) + pa, "prev", qa, !0, !0)
		}
		function R(a, c) {
			a.hasClass("dw-cal-v") || (a.addClass("dw-cal-v" + (c ? "": " dw-cal-p-in")).removeClass("dw-cal-p-out dw-cal-h"), b.trigger("onSelectShow", []))
		}
		function h(a, b) {
			a.hasClass("dw-cal-v") && a.removeClass("dw-cal-v dw-cal-p-in").addClass("dw-cal-h" + (b ? "": " dw-cal-p-out"))
		}
		function B(a, b) { (b || a).hasClass("dw-cal-v") ? h(a) : R(a)
		}
		function x() {
			a(this).removeClass("dw-cal-p-out dw-cal-p-in")
		}
		var L, n, v, P, W, r, U, X, E, Y, T, V, ba, Z, N, ea, ha, ga, ja, t, ca, la, $, I, ta, ka, Q, sa, oa, Ba, ia, Qa, ya, Ca, ua, ma, nb, ob, Db, Ja, Sa, Va, Za, Ta, na, Ga, Ia, pa, Xa, Ua, cb, rb, Fb = this,
		za = [],
		xa = [],
		fb = [],
		wa = {},
		Ab = {},
		Bb = function() {},
		Vb = a.extend({},
		b.settings),
		z = a.extend(b.settings, d, Vb),
		Wa = "full" == z.weekDays ? "": "min" == z.weekDays ? "Min": "Short",
		mb = z.weekCounter,
		Hb = z.layout || (/top|bottom/.test(z.display) ? "liquid": ""),
		Ha = "liquid" == Hb && "bubble" !== z.display,
		yb = "modal" == z.display,
		Ya = z.rtl,
		gb = Ya ? -1 : 1,
		Gb = Ha ? null: z.calendarWidth,
		Ka = "vertical" == z.swipeDirection,
		ab = z.quickNav,
		qa = z.preMonths,
		Fa = "yearMonth" == z.navigation,
		Da = z.controls.join(","),
		bb = (!0 === z.tabs || !1 !== z.tabs && Ha) && 1 < z.controls.length,
		da = !bb && z.tabs === k && !Ha && 1 < z.controls.length,
		Ea = z.yearSuffix || "",
		ra = z.activeClass || "",
		pb = "dw-sel " + (z.activeTabClass || ""),
		ib = z.activeTabInnerClass || "",
		qb = "dwb-d " + (z.disabledClass || ""),
		Pa = "",
		va = "";
		Da.match(/calendar/) ? ba = !0 : ab = !1;
		Da.match(/date/) && (wa.date = 1);
		Da.match(/time/) && (wa.time = 1);
		ba && wa.date && (bb = !0, da = !1);
		z.layout = Hb;
		z.preset = (wa.date || ba ? "date": "") + (wa.time ? "time": "");
		if ("inline" == z.display) a(this).closest('[data-role="page"]').on("pageshow",
		function() {
			b.position()
		});
		b.changing = !1;
		b.needsRefresh = !1;
		b.needsSlide = !0;
		b.getDayProps = Bb;
		b.onGenMonth = Bb;
		b.prepareObj = O;
		b.refresh = function() {
			b.changing ? b.needsRefresh = true: b.isVisible() && ba && p(ua, ma)
		};
		b.navigate = function(a, c) {
			var d, f, h = b.isVisible();
			if (c && h) C(a, true);
			else {
				d = z.getYear(a);
				f = z.getMonth(a);
				if (h && (d != ua || f != ma)) {
					b.trigger("onMonthChange", [d, f]);
					A(d, f);
					p(d, f);
					e(a.getFullYear(), a.getMonth(), true)
				}
				ua = d;
				ma = f
			}
		};
		b.showMonthView = function() {
			if (ab && !ga) {
				h(va, true);
				h(Pa, true);
				R(ha, true);
				ga = true
			}
		};
		b.changeTab = function(c) {
			if (b._isVisible && wa[c] && Va != c) {
				Va = c;
				a(".dw-cal-pnl", r).removeClass("dw-cal-p-in").addClass("dw-cal-pnl-h");
				a(".dw-cal-tab", r).removeClass(pb).removeAttr("aria-selected").find(".dw-i").removeClass(ib);
				a('.dw-cal-tab[data-control="' + c + '"]', r).addClass(pb).attr("aria-selected", "true").find(".dw-i").addClass(ib);
				wa[Va].removeClass("dw-cal-pnl-h").addClass("dw-cal-p-in");
				if (Va === "calendar") {
					L = b.getDate(true); (L.getFullYear() !== Ca.getFullYear() || L.getMonth() !== Ca.getMonth() || L.getDate() !== Ca.getDate()) && C(L)
				} else {
					Ca = b.getDate(true);
					b.setDate(Ca, false, 0, true)
				}
				b.showMonthView();
				b.trigger("onTabChange", [Va])
			}
		};
		P = j.datetime.call(this, b);
		$ = z.dateOrder.search(/m/i);
		ta = z.dateOrder.search(/y/i);
		a.extend(P, {
			ariaMessage: z.calendarText,
			onMarkupReady: function(d) {
				var e, m, j = "";
				r = d;
				U = z.display == "inline" ? a(this).is("div") ? a(this) : a(this).parent() : b._window;
				Ca = b.getDate(true);
				if (!ua) {
					ua = z.getYear(Ca);
					ma = z.getMonth(Ca)
				}
				T = 0;
				N = true;
				Za = false;
				ja = z.monthNames;
				Va = "calendar";
				if (z.minDate) {
					Ba = new Date(z.minDate.getFullYear(), z.minDate.getMonth(), 1);
					Qa = z.minDate
				} else Qa = Ba = new Date(z.startYear, 0, 1);
				if (z.maxDate) {
					ia = new Date(z.maxDate.getFullYear(), z.maxDate.getMonth(), 1);
					ya = z.maxDate
				} else ya = ia = new Date(z.endYear, 11, 31, 23, 59, 59);
				d.addClass("dw-calendar" + (i ? "": " dw-cal-no3d"));
				W = a(".dw", d);
				Sa = a(".dwcc", d);
				wa.date ? wa.date = a(".dwc", r).eq(0) : ba && a(".dwc", r).eq(0).addClass("dwc-hh");
				if (wa.time) wa.time = a(".dwc", r).eq(1);
				if (ba) {
					na = z.months == "auto" ? Math.max(1, Math.min(3, Math.floor((Gb || U[0].innerWidth || U.innerWidth()) / 280))) : z.months;
					Ga = na + 2 * qa;
					Ia = Math.floor(na / 2);
					pa = Math.round(na / 2) - 1;
					Xa = z.showDivergentDays === k ? na < 2 : z.showDivergentDays;
					Ka = Ka && na < 2;
					m = '<div class="dw-cal-btnw"><div class="' + (Ya ? "dw-cal-next-m": "dw-cal-prev-m") + ' dw-cal-prev dw-cal-btn dwb dwb-e"><div role="button" tabindex="0" class="dw-cal-btn-txt ' + (z.btnCalPrevClass || "") + '" aria-label="' + z.prevMonthText + '"></div></div>';
					for (n = 0; n < na; ++n) m = m + ('<div class="dw-cal-btnw-m" style="width: ' + 100 / na + '%"><span role="button" class="dw-cal-month"></span></div>');
					m = m + ('<div class="' + (Ya ? "dw-cal-prev-m": "dw-cal-next-m") + ' dw-cal-next dw-cal-btn dwb dwb-e"><div role="button" tabindex="0" class="dw-cal-btn-txt ' + (z.btnCalNextClass || "") + '" aria-label="' + z.nextMonthText + '"></div></div></div>');
					Fa && (j = '<div class="dw-cal-btnw"><div class="' + (Ya ? "dw-cal-next-y": "dw-cal-prev-y") + ' dw-cal-prev dw-cal-btn dwb dwb-e"><div role="button" tabindex="0" class="dw-cal-btn-txt ' + (z.btnCalPrevClass || "") + '" aria-label="' + z.prevYearText + '"></div></div><span role="button" class="dw-cal-year"></span><div class="' + (Ya ? "dw-cal-prev-y": "dw-cal-next-y") + ' dw-cal-next dw-cal-btn dwb dwb-e"><div role="button" tabindex="0" class="dw-cal-btn-txt ' + (z.btnCalNextClass || "") + '" aria-label="' + z.nextYearText + '"></div></div></div>');
					if (ab) {
						ka = z.getYear(Ba);
						Q = z.getYear(ia);
						sa = z.getMonth(Ba);
						oa = z.getMonth(ia);
						ob = Math.ceil((Q - ka + 1) / 12) + 2;
						Pa = M("month", 36, 24, 0, "", z.monthNames, z.monthNamesShort);
						va = M("year", ob * 12, Q - ka + 13, ka, Ea)
					}
					Z = '<div class="mbsc-w-p dw-cal-c"><div class="dw-cal ' + (na > 1 ? " dw-cal-multi ": "") + (mb ? " dw-weeks ": "") + (Ka ? " mbsc-cal-vertical": "") + (Xa ? "": " dw-hide-diff ") + (z.highlightNow ? " dw-hl-now ": "") + (z.calendarClass || "") + '"><div class="dw-cal-header"><div class="dw-cal-btnc ' + (Fa ? "dw-cal-btnc-ym": "dw-cal-btnc-m") + '">' + (ta < $ || na > 1 ? j + m: m + j) + '</div></div><div class="dw-cal-body"><div class="dw-cal-m-c dw-cal-v"><div class="dw-cal-days-c">';
					for (v = 0; v < na; ++v) {
						Z = Z + ('<div aria-hidden="true" class="dw-cal-days" style="width: ' + 100 / na + '%"><table cellpadding="0" cellspacing="0"><tr>');
						for (n = 0; n < 7; n++) Z = Z + ("<th>" + z["dayNames" + Wa][(n + z.firstDay) % 7] + "</th>");
						Z = Z + "</tr></table></div>"
					}
					Z = Z + ('</div><div class="dw-cal-anim-c ' + (z.calendarClass || "") + '"><div class="dw-week-nrs-c ' + (z.weekNrClass || "") + '"><div class="dw-week-nrs"></div></div><div class="dw-cal-anim">');
					for (n = 0; n < na + 2 * qa; n++) Z = Z + '<div class="dw-cal-slide" aria-hidden="true"></div>';
					Z = Z + ("</div></div></div>" + Pa + va + "</div></div></div>");
					wa.calendar = a(Z)
				}
				a.each(z.controls,
				function(b, c) {
					wa[c] = a('<div class="dw-cal-pnl" id="' + (Fb.id + "_dw_pnl_" + b) + '"></div>').append(a('<div class="dw-cal-pnl-i"></div>').append(wa[c])).appendTo(Sa)
				});
				e = '<div class="dw-cal-tabs"><ul role="tablist">';
				a.each(z.controls,
				function(a, b) {
					wa[b] && (e = e + ('<li role="tab" aria-controls="' + (Fb.id + "_dw_pnl_" + a) + '" class="dw-cal-tab ' + (a ? "": pb) + '" data-control="' + b + '"><a href="#" class="dwb-e dwb-nhl dw-i ' + (!a ? ib: "") + '">' + z[b + "Text"] + "</a></li>"))
				});
				e = e + "</ul></div>";
				Sa.before(e);
				X = a(".dw-cal-anim-c", r);
				E = a(".dw-cal-anim", X);
				ea = a(".dw-week-nrs", X);
				if (ba) {
					ga = true;
					za = a(".dw-cal-slide", E).each(function(b, c) {
						xa.push(a(c))
					});
					za.slice(qa, qa + na).addClass("dw-cal-slide-a").removeAttr("aria-hidden");
					for (n = 0; n < Ga; n++) o(xa[n], 100 * (n - qa) * gb);
					p(ua, ma);
					t = new c.classes.ScrollView(X[0], {
						axis: Ka ? "Y": "X",
						easing: "",
						contSize: 0,
						snap: 1,
						maxSnapScroll: qa,
						moveElement: E,
						mousewheel: z.mousewheel,
						swipe: z.swipe,
						liveSwipe: z.liveSwipe,
						time: 200,
						lock: true,
						onGestureStart: function(a, c) {
							c.settings.scrollLock = b.scrollLock
						},
						onAnimationEnd: function(a) { (a = Math.round(((Ka ? a.posY: a.posX) - T) / Y) * gb) && u(ua, ma - a, a > 0 ? "prev": "next", a > 0 ? a: -a)
						}
					})
				}
				la = a(".dw-cal-month", r);
				I = a(".dw-cal-year", r);
				ha = a(".dw-cal-m-c", r);
				if (ab) {
					ha.on("webkitAnimationEnd animationend", x);
					Pa = a(".dw-cal-month-c", r).on("webkitAnimationEnd animationend", x);
					va = a(".dw-cal-year-c", r).on("webkitAnimationEnd animationend", x);
					a(".dw-cal-sc-p", r);
					nb = {
						axis: Ka ? "Y": "X",
						contSize: 0,
						snap: 1,
						maxSnapScroll: 1,
						rtl: z.rtl,
						mousewheel: z.mousewheel,
						swipe: z.swipe,
						liveSwipe: z.liveSwipe,
						time: 200
					};
					Ua = new c.classes.ScrollView(va[0], nb);
					ca = new c.classes.ScrollView(Pa[0], nb)
				}
				Ha ? d.addClass("dw-cal-liq") : a(".dw-cal", r).width(Gb || 280 * na);
				z.calendarHeight && a(".dw-cal-anim-c", r).height(z.calendarHeight);
				b.tap(X,
				function(b) {
					b = a(b.target);
					if (!Za && !t.scrolled && z.readonly !== true) {
						b = b.closest(".dw-cal-day", this);
						b.hasClass("dw-cal-day-v") && H.call(b[0])
					}
				});
				a(".dw-cal-btn", r).on("touchstart mousedown keydown",
				function(b) {
					var c = a(this);
					if (b.type !== "keydown") {
						b.preventDefault();
						b = q(b, this)
					} else b = b.keyCode === 32;
					if (!Ta && b && !c.hasClass("dwb-d")) {
						Ta = true;
						c.hasClass("dw-cal-prev-m") ? J() : c.hasClass("dw-cal-next-m") ? G() : c.hasClass("dw-cal-prev-y") ? K(c) : c.hasClass("dw-cal-next-y") && S(c);
						a(l).on("mouseup.dwbtn",
						function() {
							a(l).off(".dwbtn");
							Ta = false
						})
					}
				}).on("touchend touchcancel keyup",
				function() {
					Ta = false
				});
				a(".dw-cal-tab", r).on("touchstart click",
				function(c) {
					q(c, this) && a.mobiscroll.running && b.changeTab(a(this).attr("data-control"))
				});
				if (ab) {
					b.tap(a(".dw-cal-month", r),
					function() {
						if (!va.hasClass("dw-cal-v")) {
							B(ha);
							ga = ha.hasClass("dw-cal-v")
						}
						B(Pa);
						h(va)
					});
					b.tap(a(".dw-cal-year", r),
					function() {
						va.hasClass("dw-cal-v") || Ua.scroll(cb);
						if (!Pa.hasClass("dw-cal-v")) {
							B(ha);
							ga = ha.hasClass("dw-cal-v")
						}
						B(va);
						h(Pa)
					});
					b.tap(a(".dw-cal-month-s", r),
					function() { ! ca.scrolled && !a(this).hasClass("dwb-d") && b.navigate(z.getDate(ua, a(this).attr("data-val"), 1))
					});
					b.tap(a(".dw-cal-year-s", r),
					function() {
						if (!Ua.scrolled) {
							L = z.getDate(a(this).attr("data-val"), ma, 1);
							b.navigate(new Date(f.constrain(L, Ba, ia)))
						}
					});
					b.tap(va,
					function() {
						if (!Ua.scrolled) {
							h(va);
							R(ha);
							ga = true
						}
					});
					b.tap(Pa,
					function() {
						if (!ca.scrolled) {
							h(Pa);
							R(ha);
							ga = true
						}
					})
				}
			},
			onShow: function() {
				ba && A(ua, ma)
			},
			onPosition: function(c, d, f) {
				var h, i, m, j = 0,
				k = 0,
				l = 0;
				if (Ha) {
					yb && X.height("");
					Sa.height("");
					E.width("")
				}
				Y && (m = Y);
				if (Y = Math.round(Math.round(parseInt(X.css(Ka ? "height": "width"))) / na)) {
					r.removeClass("mbsc-cal-m mbsc-cal-l");
					Y > 1024 ? r.addClass("mbsc-cal-l") : Y > 640 && r.addClass("mbsc-cal-m")
				}
				if (bb && (N || Ha) || da) {
					a(".dw-cal-pnl", r).removeClass("dw-cal-pnl-h");
					a.each(wa,
					function(a, b) {
						h = b.outerWidth();
						j = Math.max(j, h);
						k = Math.max(k, b.outerHeight());
						l = l + h
					});
					if (bb || da && l > (U[0].innerWidth || U.innerWidth())) {
						i = true;
						Va = a(".dw-cal-tabs .dw-sel", r).attr("data-control");
						W.addClass("dw-cal-tabbed")
					} else {
						Va = "calendar";
						k = j = "";
						W.removeClass("dw-cal-tabbed");
						Sa.css({
							width: "",
							height: ""
						})
					}
				}
				if (Ha && yb) {
					b._isFullScreen = true;
					i && ba && Sa.height(wa.calendar.outerHeight());
					c = W.outerHeight();
					f >= c && X.height(f - c + X.outerHeight());
					ba && (k = Math.max(k, wa.calendar.outerHeight()))
				}
				if (i) {
					Sa.css({
						width: Ha ? "": j,
						height: k
					});
					Y = Math.round(Math.round(parseInt(X.css(Ka ? "height": "width"))) / na)
				}
				if (Y) {
					E[Ka ? "height": "width"](Y);
					if (Y !== m) {
						if (Fa) {
							ja = z.maxMonthWidth > a(".dw-cal-btnw-m", r).width() ? z.monthNamesShort: z.monthNames;
							for (n = 0; n < na; ++n) a(la[n]).text(ja[z.getMonth(z.getDate(ua, ma - pa + n, 1))])
						}
						if (ab) {
							f = va[Ka ? "height": "width"]();
							a.extend(Ua.settings, {
								contSize: f,
								snap: f,
								minScroll: (2 - ob) * f,
								maxScroll: -f
							});
							a.extend(ca.settings, {
								contSize: f,
								snap: f,
								minScroll: -f,
								maxScroll: -f
							});
							Ua.refresh();
							ca.refresh();
							va.hasClass("dw-cal-v") && Ua.scroll(cb)
						}
						if (Ha && !N && m) {
							f = T / m;
							T = f * Y
						}
						e(ua, ma, !m)
					}
				} else Y = m;
				if (i) {
					a(".dw-cal-pnl", r).addClass("dw-cal-pnl-h");
					wa[Va].removeClass("dw-cal-pnl-h")
				}
				b.trigger("onCalResize", []);
				N = false
			},
			onHide: function() {
				fb = [];
				xa = [];
				ma = ua = Va = null;
				Za = true;
				Y = 0;
				t && t.destroy();
				if (ab && Ua && ca) {
					Ua.destroy();
					ca.destroy()
				}
			},
			onValidated: function(a) {
				var c, d, e;
				d = b.getDate(true);
				if (V) c = "calendar";
				else for (e in b.order) e && b.order[e] === a && (c = /[mdy]/.test(e) ? "date": "time");
				b.trigger("onSetDate", [{
					date: d,
					control: c
				}]);
				C(d);
				V = false
			}
		});
		return P
	}
})(jQuery, window, document); (function(a, b) {
	var l = a.mobiscroll,
	k = {
		batch: 50,
		min: 0,
		max: 100,
		defUnit: "",
		units: null,
		unitNames: null,
		invalid: [],
		sign: !1,
		step: 0.05,
		scale: 2,
		convert: function(a) {
			return a
		},
		signText: "&nbsp;",
		wholeText: "Whole",
		fractionText: "Fraction",
		unitText: "Unit"
	};
	l.presets.scroller.measurement = function(c) {
		function j(a) {
			return Math.max(N, Math.min(ea, L ? 0 > a ? Math.ceil(a) : Math.floor(a) : q(Math.round(a - t), W) + t))
		}
		function f(a) {
			return L ? q((Math.abs(a) - Math.abs(j(a))) * P - ca, W) + ca: 0
		}
		function i(a) {
			var b = j(a),
			c = f(a);
			c >= P && (0 > a ? b--:b++, c = 0);
			return [0 > a ? "-": "+", b, c]
		}
		function l(a) {
			var b = +a[T],
			c = L ? g(a[Y]) / P * (0 > b ? -1 : 1) : 0;
			return (R && "-" == a[0] ? -1 : 1) * (b + c)
		}
		function q(a, b) {
			return Math.round(a / b) * b
		}
		function d(a, b) {
			for (a += ""; a.length < b;) a = "0" + a;
			return a
		}
		function g(a) {
			return a ? (a + "").replace(/\+|\-/g, "") : ""
		}
		function O(a, b, c) {
			return b === c || !C.convert ? a: C.convert.call(this, a, b, c)
		}
		function m(a, b, c) {
			a = a > c ? c: a;
			return a < b ? b: a
		}
		function M(a) {
			ba = O(C.min, B, a);
			Z = O(C.max, B, a);
			L ? (N = 0 > ba ? Math.ceil(ba) : Math.floor(ba), ea = 0 > Z ? Math.ceil(Z) : Math.floor(Z), ha = f(ba), ga = f(Z)) : (N = Math.round(ba), ea = Math.round(Z), ea = N + Math.floor((ea - N) / W) * W, t = N % W)
		}
		function w(a, b) {
			var c = +N,
			d = +ea,
			e = L ? 1 : W,
			f;
			R && (d = Math.abs(c) > Math.abs(d) ? Math.abs(c) : Math.abs(d), c = 0 > c ? 0 : c);
			f = b - o * e;
			f = f < c ? c: f;
			c = f + 2 * o * e;
			c = c > d ? d: c;
			if (f !== G || c !== J) {
				F.values = [];
				F.label = C.wholeText;
				for ($ = f; $ <= c; $ += e) F.values.push($);
				S = f;
				K = c;
				return ! 0
			}
			return ! 1
		}
		function A(b) {
			if (n) {
				var c = H.length,
				b = a.inArray( + b, H),
				e,
				f;
				u.keys = [];
				u.values = [];
				for ($ = -50; 50 > $; $++) e = ($ + b) % c,
				f = H[0 > e ? c + e: e],
				e = Math.abs(Math.floor(($ + b) / c)),
				u.keys.push(Array(e).join(0 > $ + b ? "-": "+") + f),
				u.values.push("." + d(f, v))
			}
		}
		function y(a) {
			return l(a).toFixed(L ? v: 0) + (h ? " " + x[a[V]] : "")
		}
		var D = a.extend({},
		c.settings),
		C = a.extend(c.settings, k, D),
		D = {},
		p = [[]],
		e = {},
		F = {},
		u = {},
		H = [],
		o = C.batch,
		G,
		J,
		S,
		K,
		R = C.sign,
		h = C.units && C.units.length,
		B = h ? C.defUnit || C.units[0] : "",
		x = C.unitNames || C.units,
		L = 1 > C.step,
		n = !1,
		v = L ? Math.max(C.scale, (C.step + "").split(".")[1].length) : 1,
		P = Math.pow(10, v),
		W = Math.round(L ? C.step * P: C.step),
		r,
		U,
		X,
		E = -1,
		Y,
		T,
		V,
		ba,
		Z,
		N,
		ea,
		ha,
		ga,
		ja,
		t = 0,
		ca = 0,
		la = {},
		$,
		I = 0;
		c.setVal = function(b, d, e, f, g) {
			c._setVal(a.isArray(b) ? y(b) : b, d, e, f, g)
		};
		c.setValue = function(a, b, d, e, f) {
			c.setVal(a, b, f, e, d)
		};
		M(B);
		if (R) if (R = !1, h) for ($ = 0; $ < C.units.length; $++) 0 > O(C.min, B, C.units[$]) && (R = !0);
		else R = 0 > C.min;
		R && (p[0].push({
			values: ["-", "+"],
			label: C.signText
		}), E = I++);
		p[0].push(F);
		T = I++;
		if (L) {
			p[0].push(u);
			u.keys = [];
			u.values = [];
			u.label = C.fractionText;
			for ($ = ca; $ < P; $ += W) H.push($),
			u.keys.push($),
			u.values.push("." + d($, v));
			n = H.length > C.rows;
			Y = I++;
			r = Math.ceil(100 / W);
			C.invalid && C.invalid.length && (a.each(C.invalid,
			function(a, b) {
				var c = b > 0 ? Math.floor(b) : Math.ceil(b);
				c === 0 && (c = b <= 0 ? -0.001 : 0.001);
				e[c] = (e[c] || 0) + 1;
				if (b === 0) {
					c = 0.001;
					e[c] = (e[c] || 0) + 1
				}
			}), a.each(e,
			function(a, b) {
				b < r ? delete e[a] : e[a] = a
			}))
		}
		if (h) {
			D = {
				keys: [],
				values: [],
				label: C.unitText
			};
			for ($ = 0; $ < C.units.length; $++) D.keys.push($),
			D.values.push(x[$]);
			p[0].push(D)
		}
		V = I;
		return {
			width: 55,
			wheels: p,
			showLabel: !1,
			formatValue: y,
			parseValue: function(b) {
				var c = ((b || C.defaultValue) + "").split(" "),
				b = +c[0],
				d = [],
				e = "";
				if (h) {
					e = a.inArray(c[1], x);
					e = e == -1 ? a.inArray(B, C.units) : e;
					e = e == -1 ? 0 : e
				}
				X = h ? C.units[e] : "";
				M(X);
				b = isNaN(b) ? 0 : b;
				b = m(b, ba, Z);
				c = i(b);
				c[1] = m(c[1], N, ea);
				U = b;
				if (R) {
					d[0] = c[0];
					c[1] = Math.abs(c[1])
				}
				d[T] = c[1];
				L && (d[Y] = c[2]);
				h && (d[V] = e);
				return d
			},
			onBeforeShow: function() {
				w(X, c._tempWheelArray[T]);
				A(g(c._tempWheelArray[Y]));
				G = S;
				J = K;
				ja = true
			},
			onShow: function(b) {
				a(".dwwl", b).on("mousedown touchstart",
				function() {
					clearTimeout(la[a(".dwwl", b).index(this)])
				})
			},
			onCancel: function() {
				U = b
			},
			validate: function(d, f, j, k) {
				var r = c._tempWheelArray,
				v, o = [],
				t,
				p,
				I,
				P,
				y,
				u,
				x,
				F = +g(r[Y]),
				D = h ? C.units[r[V]] : "";
				if (R && f === 0) {
					U = Math.abs(U) * (r[f] === "-" ? -1 : 1);
					o = n ? [T, Y] : [T]
				}
				if (f === T || f === Y && L || U === b || f === b && !ja) {
					U = l(r);
					X = D
				}
				if (h && f === V && X !== D || f === b && !ja) {
					M(D);
					U = O(U, X, D);
					X = D;
					p = i(U);
					R && (r[0] = p[0]);
					w(D, R ? Math.abs(p[1]) : p[1]);
					A(F);
					o = n ? [T, Y] : [T];
					t = f ? 0.2 : j
				}
				U = m(U, ba, Z);
				p = i(U);
				P = R ? Math.abs(p[1]) : p[1];
				v = R ? r[0] == "-": U < 0;
				r[T] = P;
				v && (p[0] = "-");
				L && (r[Y] = p[2]);
				if (f === T || R && f === 0) y = w(D, P);
				f === T && y && o.push(T);
				if (f === Y && n) {
					A(F);
					o.push(Y)
				}
				if (o.length) {
					la[f] = setTimeout(function() {
						ja = true;
						G = S;
						J = K;
						c.changeWheel(o, t, f !== b)
					},
					f === b ? 0 : j * 1E3);
					return false
				}
				if (R && f === b) {
					u = a(".dw-ul", d).eq(E);
					a(".dw-li", u).addClass("dw-v");
					ba > 0 && a(".dw-li", u).eq(0).removeClass("dw-v");
					Z < 0 && a(".dw-li", u).eq(1).removeClass("dw-v")
				}
				u = a(".dw-ul", d).eq(T);
				if (R && !f) {
					a(".dw-li", u).addClass("dw-v");
					$ = a(".dw-li", u).index(a('.dw-li[data-val="' + Math.abs(v ? N: ea) + '"]', u));
					$ != -1 && a(".dw-li", u).slice($ + 1).removeClass("dw-v")
				}
				a.each(L ? e: C.invalid,
				function(b, c) {
					if (R && v) if (c <= 0) c = Math.abs(c);
					else return;
					a('.dw-li[data-val="' + q(O(c, B, D), L ? 1 : W) + '"]', u).removeClass("dw-v")
				});
				r[T] = +c.getValidCell(P, u, k).val;
				p[1] = r[T] * (R && v ? -1 : 1);
				if (f !== Y && L) {
					u = a(".dw-ul", d).eq(Y);
					a(".dw-li", u).addClass("dw-v");
					d = R ? r[0] + g(r[1]) : (U < 0 ? "-": "+") + Math.abs(p[1]);
					j = (ba < 0 ? "-": "+") + Math.abs(N);
					k = (Z < 0 ? "-": "+") + Math.abs(ea);
					d === j && a(".dw-li", u).each(function() {
						x = g(a(this).attr("data-val")); (v ? x > ha: x < ha) && a(this).removeClass("dw-v")
					});
					d === k && a(".dw-li", u).each(function() {
						x = g(a(this).attr("data-val")); (v ? x < ga: x > ga) && a(this).removeClass("dw-v")
					});
					a.each(C.invalid,
					function(b, c) {
						I = i(O(c, B, D)); (p[0] === I[0] || p[1] === 0 && I[1] === 0 && I[2] === 0) && p[1] === I[1] && a(".dw-li", u).each(function() {
							g(a(this).attr("data-val")) == I[2] && a(this).removeClass("dw-v")
						})
					})
				}
				ja = false
			}
		}
	};
	l.presetShort("measurement")
})(jQuery); (function(a) {
	var b = a.mobiscroll,
	l = b.presets.scroller,
	k = {
		min: 0,
		max: 100,
		defUnit: "N",
		units: ["N", "kp", "lbf", "pdl"]
	},
	c = {
		N: 1,
		kp: 9.80665,
		lbf: 4.448222,
		pdl: 0.138255
	};
	b.presetShort("force");
	l.force = function(b) {
		var f = a.extend({},
		k, b.settings),
		i = [],
		s,
		q;
		if (f.units) for (q = 0; q < f.units.length; q++) s = f.units[q],
		c[s] && i.push(s);
		a.extend(b.settings, f, {
			sign: !1,
			units: i,
			unitNames: null,
			convert: function(a, b, f) {
				return a * c[b] / c[f]
			}
		});
		return l.measurement.call(this, b)
	}
})(jQuery); (function(a, b, l, k) {
	var c = a.mobiscroll,
	j = a.extend,
	f = c.util,
	i = c.datetime,
	s = c.presets.scroller,
	q = {
		labelsShort: "Yrs,Mths,Days,Hrs,Mins,Secs".split(","),
		fromText: "Start",
		toText: "End",
		eventText: "event",
		eventsText: "events"
	};
	c.presetShort("calendar");
	s.calendar = function(d) {
		function g(c) {
			if (c) {
				if (L[c]) return L[c];
				var d = a('<div style="background-color:' + c + ';"></div>').appendTo("body"),
				e = (b.getComputedStyle ? getComputedStyle(d[0]) : d[0].style).backgroundColor.replace(/rgb|rgba|\(|\)|\s/g, "").split(","),
				e = 130 < 0.299 * e[0] + 0.587 * e[1] + 0.114 * e[2] ? "#000": "#fff";
				d.remove();
				return L[c] = e
			}
		}
		function l(a) {
			return a.sort(function(a, b) {
				var c = a.d || a.start,
				d = b.d || b.start,
				c = !c.getTime ? 0 : a.start && a.end && a.start.toDateString() !== a.end.toDateString() ? 1 : c.getTime(),
				d = !d.getTime ? 0 : b.start && b.end && b.start.toDateString() !== b.end.toDateString() ? 1 : d.getTime();
				return c - d
			})
		}
		function m(b) {
			var c;
			c = a(".dw-cal-c", p).outerHeight();
			var d = b.outerHeight(),
			f = b.outerWidth(),
			g = b.offset().top - a(".dw-cal-c", p).offset().top,
			h = 2 > b.closest(".dw-cal-row").index();
			c = e.addClass("dw-cal-events-t").css({
				top: h ? g + d: "0",
				bottom: h ? "0": c - g
			}).addClass("dw-cal-events-v").height();
			e.css(h ? "bottom": "top", "auto").removeClass("dw-cal-events-t");
			o.css("max-height", c);
			H.refresh();
			H.scroll(0);
			h ? e.addClass("dw-cal-events-b") : e.removeClass("dw-cal-events-b");
			a(".dw-cal-events-arr", e).css("left", b.offset().left - e.offset().left + f / 2)
		}
		function M(b, f) {
			var h = u[b];
			if (h) {
				var i, j, k, r, E, o = '<ul class="dw-cal-event-list">';
				F = f;
				f.addClass(v).find(".dw-i").addClass(W);
				f.hasClass(P) && f.attr("data-hl", "true").removeClass(P);
				l(h);
				a.each(h,
				function(a, b) {
					r = b.d || b.start;
					E = b.start && b.end && b.start.toDateString() !== b.end.toDateString();
					k = b.color;
					g(k);
					j = i = "";
					r.getTime && (i = c.datetime.formatDate((E ? "MM d yy ": "") + n.timeFormat, r));
					b.end && (j = c.datetime.formatDate((E ? "MM d yy ": "") + n.timeFormat, b.end));
					var d = o,
					e = '<li role="button" aria-label="' + b.text + (i ? ", " + n.fromText + " " + i: "") + (j ? ", " + n.toText + " " + j: "") + '" class="dw-cal-event"><div class="dw-cal-event-color" style="' + (k ? "background:" + k + ";": "") + '"></div><div class="dw-cal-event-text">' + (r.getTime && !E ? '<div class="dw-cal-event-time">' + c.datetime.formatDate(n.timeFormat, r) + "</div>": "") + b.text + "</div>",
					f;
					if (b.start && b.end) {
						f = n.labelsShort;
						var h = Math.abs(b.end - b.start) / 1E3,
						m = h / 60,
						l = m / 60,
						v = l / 24,
						p = v / 365;
						f = '<div class="dw-cal-event-dur">' + (45 > h && Math.round(h) + " " + f[5].toLowerCase() || 45 > m && Math.round(m) + " " + f[4].toLowerCase() || 24 > l && Math.round(l) + " " + f[3].toLowerCase() || 30 > v && Math.round(v) + " " + f[2].toLowerCase() || 365 > v && Math.round(v / 30) + " " + f[1].toLowerCase() || Math.round(p) + " " + f[0].toLowerCase()) + "</div>"
					} else f = "";
					o = d + (e + f + "</li>")
				});
				o += "</ul>";
				G.html(o);
				d.trigger("onEventBubbleShow", [F, e]);
				m(F);
				d.tap(a(".dw-cal-event", G),
				function(c) {
					H.scrolled || d.trigger("onEventSelect", [c, h[a(this).index()], b])
				});
				J = !0
			}
		}
		function w() {
			e && e.removeClass("dw-cal-events-v");
			F && (F.removeClass(v).find(".dw-i").removeClass(W), F.attr("data-hl") && F.removeAttr("data-hl").addClass(P));
			J = !1
		}
		function A(a) {
			return new Date(a.getFullYear(), a.getMonth(), a.getDate())
		}
		function y(a) {
			T = {};
			if (a && a.length) for (K = 0; K < a.length; K++) T[A(a[K])] = a[K]
		}
		function D() {
			V && w();
			d.refresh()
		}
		var C, p, e, F, u, H, o, G, J, S, K, R, h, B, x, L = {};
		B = j({},
		d.settings);
		var n = j(d.settings, q, B),
		v = "dw-sel dw-cal-day-ev",
		P = "dw-cal-day-hl",
		W = n.activeClass || "",
		r = n.multiSelect || "week" == n.selectType,
		U = f.isNumeric(n.multiSelect) ? n.multiSelect: Infinity,
		X = n.markedDisplay,
		E = !0 === n.events || !0 === n.markedText,
		Y = 0,
		T = {},
		V = a.isArray(n.events),
		ba = V ? j(!0, [], n.events) : [];
		B = s.calbase.call(this, d);
		C = j({},
		B);
		S = n.firstSelectDay === k ? n.firstDay: n.firstSelectDay;
		if (n.selectedValues) for (K = 0; K < n.selectedValues.length; K++) T[A(n.selectedValues[K])] = n.selectedValues[K];
		V && a.each(ba,
		function(a, b) {
			b._id === k && (b._id = Y++)
		});
		d.onGenMonth = function(a, b) {
			u = d.prepareObj(ba, a, b);
			R = d.prepareObj(n.marked, a, b)
		};
		d.getDayProps = function(b) {
			for (var c = r ? T[b] !== k: V ? b.getTime() === (new Date).setHours(0, 0, 0, 0) : k, d = R[b] ? R[b][0] : !1, e = u[b] ? u[b][0] : !1, f = d || e, d = d.text || (e ? u[b].length + " " + (1 < u[b].length ? n.eventsText: n.eventText) : 0), e = R[b] || u[b] || [], h = f.color, i = E && d ? g(h) : "", m = "", j = '<div class="dw-cal-day-m"' + (h ? ' style="background-color:' + h + ";border-color:" + h + " " + h + ' transparent transparent"': "") + "></div>", b = 0; b < e.length; b++) e[b].icon && (m += '<span class="mbsc-ic mbsc-ic-' + e[b].icon + '"' + (e[b].text ? "": e[b].color ? ' style="color:' + e[b].color + ';"': "") + "></span>\n");
			if ("bottom" == X) {
				j = '<div class="dw-cal-day-m"><div class="dw-cal-day-m-t">';
				for (b = 0; b < e.length; b++) j += '<div class="dw-cal-day-m-c"' + (e[b].color ? ' style="background:' + e[b].color + ';"': "") + "></div>";
				j += "</div></div>"
			}
			return {
				marked: f,
				selected: V ? !1 : c,
				cssClass: V && c ? "dw-cal-day-hl": f ? "dw-cal-day-marked": "",
				ariaLabel: E || V ? d: "",
				markup: E && d ? '<div class="dw-cal-day-txt-c"><div class="dw-cal-day-txt ' + (n.eventTextClass || "") + '" title="' + a("<div>" + d + "</div>").text() + '"' + (h ? ' style="background:' + h + ";color:" + i + ';text-shadow:none;"': "") + ">" + m + d + "</div></div>": E && m ? '<div class="dw-cal-day-ic-c">' + m + "</div>": f ? j: ""
			}
		};
		d.addValue = function(a) {
			T[A(a)] = a;
			D()
		};
		d.removeValue = function(a) {
			delete T[A(a)];
			D()
		};
		d.setVal = function(a, b, c, e, f) {
			r && (y(a), a = a ? a[0] : null);
			d._setVal(a, b, c, e, f);
			D()
		};
		d.getVal = function(a) {
			return r ? f.objectToArray(T) : d.getDate(a)
		};
		d.setValues = function(a, b) {
			d.setDate(a ? a[0] : null, b);
			y(a);
			D()
		};
		d.getValues = function() {
			return r ? d.getVal() : [d.getDate()]
		};
		V && (d.addEvent = function(b) {
			var c = [],
			b = j(!0, [], a.isArray(b) ? b: [b]);
			a.each(b,
			function(a, b) {
				b._id === k && (b._id = Y++);
				ba.push(b);
				c.push(b._id)
			});
			D();
			return c
		},
		d.removeEvent = function(b) {
			b = a.isArray(b) ? b: [b];
			a.each(b,
			function(b, c) {
				a.each(ba,
				function(a, b) {
					if (b._id === c) return ba.splice(a, 1),
					!1
				})
			});
			D()
		},
		d.getEvents = function(a) {
			var b;
			return a ? (a.setHours(0, 0, 0, 0), b = d.prepareObj(ba, a.getFullYear(), a.getMonth()), b[a] ? l(b[a]) : []) : j(!0, [], ba)
		},
		d.setEvents = function(b) {
			var c = [];
			ba = j(!0, [], b);
			a.each(ba,
			function(a, b) {
				b._id === k && (b._id = Y++);
				c.push(b._id)
			});
			D();
			return c
		});
		j(B, {
			highlight: !r && !V,
			divergentDayChange: !r && !V,
			buttons: V && "inline" !== n.display ? ["cancel"] : n.buttons,
			parseValue: function(a) {
				var b, c;
				if (r && a && typeof a === "string") {
					T = {};
					a = a.split(",");
					for (b = 0; b < a.length; b++) {
						c = i.parseDate(d.format, a[b].replace(/^\s+|\s+$/g, ""), n);
						T[A(c)] = c
					}
					a = a[0]
				}
				return C.parseValue.call(this, a)
			},
			formatValue: function(a) {
				var b, c = [];
				if (r) {
					for (b in T) c.push(i.formatDate(d.format, T[b], n));
					return c.join(", ")
				}
				return C.formatValue.call(this, a)
			},
			onClear: function() {
				if (r) {
					T = {};
					d.refresh()
				}
			},
			onBeforeShow: function() {
				if (V) n.headerText = false;
				if (n.closeOnSelect) n.divergentDayChange = false;
				if (n.counter && r) n.headerText = function() {
					var b = 0,
					c = n.selectType == "week" ? 7 : 1;
					a.each(T,
					function() {
						b++
					});
					b = Math.round(b / c);
					return (b > 1 ? n.selectedPluralText || n.selectedText: n.selectedText).replace(/{count}/, b)
				}
			},
			onMarkupReady: function(b) {
				C.onMarkupReady.call(this, b);
				p = b;
				if (r) {
					a(".dwv", b).attr("aria-live", "off");
					h = j({},
					T)
				}
				E && a(".dw-cal", b).addClass("dw-cal-ev");
				X && a(".dw-cal", b).addClass("dw-cal-m-" + X);
				if (V) {
					b.addClass("dw-cal-em");
					e = a('<div class="dw-cal-events ' + (n.eventBubbleClass || "") + '"><div class="dw-cal-events-arr"></div><div class="dw-cal-events-i"><div class="dw-cal-events-sc"></div></div></div>').appendTo(a(".dw-cal-c", b));
					o = a(".dw-cal-events-i", e);
					G = a(".dw-cal-events-sc", e);
					H = new c.classes.ScrollView(o[0]);
					J = false;
					d.tap(o,
					function() {
						H.scrolled || w()
					})
				}
			},
			onMonthChange: function() {
				V && w()
			},
			onSelectShow: function() {
				V && w()
			},
			onMonthLoaded: function() {
				if (x) {
					M(x.d, a('.dw-cal-day-v[data-full="' + x.full + '"]:not(.dw-cal-day-diff)', p));
					x = false
				}
			},
			onDayChange: function(b) {
				var c = b.date,
				e = A(c),
				g = a(b.cell),
				b = b.selected;
				if (V) {
					w();
					g.hasClass("dw-cal-day-ev") || setTimeout(function() {
						d.changing ? x = {
							d: e,
							full: g.attr("data-full")
						}: M(e, g)
					},
					10)
				} else if (r) if (n.selectType == "week") {
					var h, i, m = e.getDay() - S,
					m = m < 0 ? 7 + m: m;
					n.multiSelect || (T = {});
					for (h = 0; h < 7; h++) {
						i = new Date(e.getFullYear(), e.getMonth(), e.getDate() - m + h);
						b ? delete T[i] : f.objectToArray(T).length / 7 < U && (T[i] = i)
					}
					D()
				} else {
					h = a('.dw-cal .dw-cal-day[data-full="' + g.attr("data-full") + '"]', p);
					if (b) {
						h.removeClass("dw-sel").removeAttr("aria-selected").find(".dw-i").removeClass(W);
						delete T[e]
					} else if (f.objectToArray(T).length < U) {
						h.addClass("dw-sel").attr("aria-selected", "true").find(".dw-i").addClass(W);
						T[e] = e
					}
				}
				if (!V && !n.multiSelect && n.closeOnSelect && n.display !== "inline") {
					d.needsSlide = false;
					d.setDate(c);
					d.select();
					return false
				}
			},
			onCalResize: function() {
				J && m(F)
			},
			onCancel: function() { ! d.live && r && (T = j({},
				h))
			}
		});
		return B
	}
})(jQuery, window, document); (function(a) {
	var b = a.mobiscroll,
	l = b.presets.scroller,
	k = {
		min: 0,
		max: 100,
		defUnit: "kph",
		units: ["kph", "mph", "mps", "fps", "knot"],
		unitNames: {
			kph: "km/h",
			mph: "mi/h",
			mps: "m/s",
			fps: "ft/s",
			knot: "knot"
		}
	},
	c = {
		kph: 1,
		mph: 1.60934,
		mps: 3.6,
		fps: 1.09728,
		knot: 1.852
	};
	b.presetShort("speed");
	l.speed = function(b) {
		var f = a.extend({},
		k, b.settings),
		i = [],
		s = [],
		q,
		d;
		if (f.units) for (d = 0; d < f.units.length; d++) q = f.units[d],
		c[q] && (i.push(q), s.push(f.unitNames[q] || q));
		a.extend(b.settings, f, {
			sign: !1,
			units: i,
			unitNames: s,
			convert: function(a, b, d) {
				return a * c[b] / c[d]
			}
		});
		return l.measurement.call(this, b)
	}
})(jQuery); (function(a) {
	var b = a.mobiscroll,
	l = b.presets.scroller,
	k = {
		min: -20,
		max: 40,
		defUnit: "c",
		units: ["c", "k", "f", "r"],
		unitNames: {
			c: "\u00b0C",
			k: "K",
			f: "\u00b0F",
			r: "\u00b0R"
		}
	},
	c = {
		c: 1,
		k: 1,
		f: 1,
		r: 1
	},
	j = {
		c2k: function(a) {
			return a + 273.15
		},
		c2f: function(a) {
			return 9 * a / 5 + 32
		},
		c2r: function(a) {
			return 9 * (a + 273.15) / 5
		},
		k2c: function(a) {
			return a - 273.15
		},
		k2f: function(a) {
			return 9 * a / 5 - 459.67
		},
		k2r: function(a) {
			return 9 * a / 5
		},
		f2c: function(a) {
			return 5 * (a - 32) / 9
		},
		f2k: function(a) {
			return 5 * (a + 459.67) / 9
		},
		f2r: function(a) {
			return a + 459.67
		},
		r2c: function(a) {
			return 5 * (a - 491.67) / 9
		},
		r2k: function(a) {
			return 5 * a / 9
		},
		r2f: function(a) {
			return a - 459.67
		}
	};
	b.presetShort("temperature");
	l.temperature = function(b) {
		var i = a.extend({},
		k, b.settings),
		s = [],
		q = [],
		d,
		g;
		if (i.units) for (g = 0; g < i.units.length; g++) d = i.units[g],
		c[d] && (s.push(d), q.push(i.unitNames[d] || d));
		a.extend(b.settings, i, {
			sign: !0,
			units: s,
			unitNames: q,
			convert: function(a, b, c) {
				return j[b + "2" + c](a)
			}
		});
		return l.measurement.call(this, b)
	}
})(jQuery); (function(a) {
	var b = a.mobiscroll,
	l = b.presets.scroller,
	k = {
		min: 0,
		max: 1E3,
		defUnit: "kg",
		units: ["g", "kg", "oz", "lb"],
		unitNames: {
			tlong: "t (long)",
			tshort: "t (short)"
		}
	},
	c = {
		mg: 0.001,
		cg: 0.01,
		dg: 0.1,
		g: 1,
		dag: 10,
		hg: 100,
		kg: 1E3,
		t: 1E6,
		drc: 1.7718452,
		oz: 28.3495,
		lb: 453.59237,
		st: 6350.29318,
		qtr: 12700.58636,
		cwt: 50802.34544,
		tlong: 1016046.9088,
		tshort: 907184.74
	};
	b.presetShort("mass");
	l.mass = function(b) {
		var f = a.extend({},
		k, b.settings),
		i = [],
		s = [],
		q,
		d;
		if (f.units) for (d = 0; d < f.units.length; d++) q = f.units[d],
		c[q] && (i.push(q), s.push(f.unitNames[q] || q));
		a.extend(b.settings, f, {
			sign: !1,
			units: i,
			unitNames: s,
			convert: function(a, b, d) {
				return a * c[b] / c[d]
			}
		});
		return l.measurement.call(this, b)
	}
})(jQuery); (function(a, b) {
	var l = a.mobiscroll,
	k = {
		wheelOrder: "hhiiss",
		useShortLabels: !1,
		minTime: 0,
		maxTime: Infinity,
		labels: "Years,Months,Days,Hours,Minutes,Seconds".split(","),
		labelsShort: "Yrs,Mths,Days,Hrs,Mins,Secs".split(",")
	};
	l.presetShort("timespan");
	l.presets.scroller.timespan = function(c) {
		function j(b) {
			var c = {};
			a(o).each(function(a, d) {
				c[d] = K[d] ? Math.floor(b / G[d].limit) : 0;
				b -= c[d] * G[d].limit
			});
			return c
		}
		function f(a, b) {
			var c = !1,
			d = S[K[a] - 1] || 1,
			f = G[a],
			h = f.wheel,
			i = f.prefix;
			A = 0;
			y = f.until;
			a == R && (A = Math.max(p[a], b[a] - 50 * d), y = Math.min(e[a], A + 100 * d), g = A + 5 * d, O = y - 5 * d);
			h.keys = [];
			h.values = [];
			h.label = f.label;
			H.match(RegExp(f.re + f.re, "i")) && (c = !0);
			for (s = A; s <= y; s += d) h.keys.push(s),
			h.values.push((i || "") + (10 > s && c ? "0": "") + s + '<span class="dwtlbl">' + f.label + "</span>")
		}
		function i(b) {
			var c = 0;
			a.each(J,
			function(a, d) {
				isNaN( + b[0]) || (c += G[d.v].limit * b[a])
			});
			return c
		}
		var s, q, d, g, O, m, M, w, A, y, D, C, p, e, F = a.extend({},
		c.settings),
		u = a.extend(c.settings, k, F),
		H = u.wheelOrder,
		F = u.useShortLabels ? u.labelsShort: u.labels,
		o = "years,months,days,hours,minutes,seconds".split(","),
		G = {
			years: {
				ord: 0,
				index: 6,
				until: 10,
				limit: 31536E6,
				label: F[0],
				re: "y",
				wheel: {}
			},
			months: {
				ord: 1,
				index: 5,
				until: 11,
				limit: 2592E6,
				label: F[1],
				re: "m",
				wheel: {}
			},
			days: {
				ord: 2,
				index: 4,
				until: 31,
				limit: 864E5,
				label: F[2],
				re: "d",
				wheel: {}
			},
			hours: {
				ord: 3,
				index: 3,
				until: 23,
				limit: 36E5,
				label: F[3],
				re: "h",
				wheel: {}
			},
			minutes: {
				ord: 4,
				index: 2,
				until: 59,
				limit: 6E4,
				label: F[4],
				re: "i",
				wheel: {}
			},
			seconds: {
				ord: 5,
				index: 1,
				until: 59,
				limit: 1E3,
				label: F[5],
				re: "s",
				wheel: {}
			}
		},
		J = [],
		S = u.steps || [],
		K = {},
		R = "seconds",
		h = 0,
		B = u.defaultValue || Math.max(u.minTime, Math.min(0, u.maxTime)),
		x = [[]];
		d = 0;
		w = j(d);
		p = j(u.minTime);
		e = j(u.maxTime);
		a(o).each(function(a, b) {
			q = H.search(RegExp(G[b].re, "i")); - 1 < q && (J.push({
				o: q,
				v: b
			}), G[b].index > G[R].index && (R = b))
		});
		J.sort(function(a, b) {
			return a.o > b.o ? 1 : -1
		});
		a.each(J,
		function(a, b) {
			b.v == R && (h = a);
			K[b.v] = a + 1;
			x[0].push(G[b.v].wheel);
			f(b.v, w)
		});
		c.getVal = function(a, b) {
			return b ? c._getVal(a) : c._hasValue || a ? i(c.getArrayVal(a)) : null
		};
		return {
			mode: "scroller",
			showLabel: !0,
			wheels: x,
			parseValue: function(b) {
				var c = [],
				d;
				l.util.isNumeric(b) || !b ? (w = j(b || B), a.each(J,
				function(a, b) {
					c.push(w[b.v])
				})) : a.each(J,
				function(a, e) {
					d = RegExp("(\\d+)\\s?(" + u.labels[G[e.v].ord] + "|" + u.labelsShort[G[e.v].ord] + ")", "gi").exec(b);
					c.push(d ? d[1] : 0)
				});
				a(c).each(function(a, b) {
					c[a] = Math.floor(b / (S[a] || 1)) * (S[a] || 1)
				});
				return c
			},
			formatValue: function(b) {
				var c = "";
				a.each(J,
				function(a, d) {
					c += +b[a] ? b[a] + " " + G[d.v].label + " ": ""
				});
				return c.replace(/\s+$/g, "")
			},
			validate: function(k, l, v) {
				var q, w, r = c._tempWheelArray;
				d = i(r);
				q = j(d);
				if (l === h || !m && (r[h] < g || r[h] > O)) if (f(R, q), D !== A || C !== y) w = r[h],
				M = setTimeout(function() {
					D = A;
					C = y;
					m = !0;
					r[h] = w;
					c.changeWheel([h], b, l !== b)
				},
				1E3 * v);
				var s = !0,
				u = !0;
				a(o).each(function(c, d) {
					if (K[d] !== b) {
						var f = a(".dw-ul", k).eq(K[d] - 1),
						g = a(".dw-li", f).index(a('.dw-li[data-val="' + e[d] + '"]', f)),
						h = a(".dw-li", f).index(a('.dw-li[data-val="' + p[d] + '"]', f));
						a(".dw-li", f).addClass("dw-v");
						s && -1 < g && a(".dw-li", f).slice(g + 1).removeClass("dw-v");
						u && -1 < h && a(".dw-li", f).slice(0, h).removeClass("dw-v");
						s = s && q[d] == e[d];
						u = u && q[d] == p[d]
					}
				});
				m = !1
			},
			onBeforeShow: function() {
				d = i(c._tempWheelArray);
				w = j(d);
				p = j(u.minTime);
				e = j(u.maxTime);
				f(R, w)
			},
			onMarkupReady: function(b) {
				b.addClass("dw-timespan");
				a(".dwwl" + h, b).on("mousedown touchstart",
				function() {
					clearTimeout(M)
				})
			}
		}
	}
})(jQuery); (function(a) {
	var a = a.mobiscroll,
	b = a.presets.scroller;
	b.number = b.measurement;
	a.presetShort("number")
})(jQuery); (function(a, b, l, k) {
	var c = a.extend,
	j = a.mobiscroll,
	f = j.classes;
	f.MenuStrip = function(i, l) {
		function q(a) {
			clearTimeout(G);
			G = setTimeout(function() {
				w("load" !== a.type)
			},
			200)
		}
		function d(b, c) {
			if (b.length) {
				var d = b.offset().left,
				e = b[0].offsetLeft,
				f = b.outerWidth(),
				h = y.offset().left;
				A = b;
				c === k && (c = !H);
				J && c && (H ? b.attr("data-selected") ? O(b) : g(b) : (O(a(".mbsc-ms-item-sel", n)), g(b)));
				"a" == R ? d < h ? K.scroll( - e, 200) : d + f > h + p && K.scroll(p - e - f, 200) : K.scroll(p / 2 - e - f / 2, 200);
				c && x("onItemTap", [b])
			}
		}
		function g(a) {
			a.addClass(S).attr("data-selected", "true").attr("aria-selected", "true")
		}
		function O(a) {
			a.removeClass(S).removeAttr("data-selected").removeAttr("aria-selected")
		}
		function m(a) {
			"object" !== typeof a && (a = n.children('[data-id="' + a + '"]'));
			return a
		}
		function M() {
			x("onMarkupInit", [{}]);
			n.children().each(function(b) {
				var c, d = a(this),
				f = J && "true" == d.attr("data-selected"),
				g = "true" == d.attr("data-disabled"),
				i = d.attr("data-icon");
				0 === b && (D = d);
				J && !H && f && (A = d);
				1 !== d.children().length && a("<span></span>").append(d.contents()).appendTo(d);
				c = d.children().eq(0);
				i && (e = !0);
				c.html() && (F = !0);
				c.hasClass("mbsc-ms-item-i") || (b = a('<span class="mbsc-ms-item-i-t"><span class="mbsc-ms-item-i-c"></span></span>'), b.find(".mbsc-ms-item-i-c").append(c.contents()), c.addClass("mbsc-ms-item-i" + (i ? " mbsc-ms-ic mbsc-ic mbsc-ic-" + i: "")).append(b), d.attr("data-role", "button").attr("aria-selected", f ? "true": null).attr("aria-disabled", g ? "true": null).addClass("mbsc-ms-item mbsc-btn-e " + (h.itemClass || "") + (f ? S: "") + (g ? " mbsc-btn-d " + (h.disabledClass || "") : "")), d.find(".mbsc-ms-item-i").append())
			});
			e && y.addClass("mbsc-ms-icons");
			F && y.addClass("mbsc-ms-txt")
		}
		function w(a) {
			var b = h.itemWidth,
			d = h.layout;
			L.contWidth = p = y.width();
			a && o === p || (o = p, j.util.isNumeric(d) && (u = p ? p / d: b, u < b && (d = "liquid")), b && ("liquid" == d ? u = p ? p / Math.min(Math.floor(p / b), n.children().length) : b: "fixed" == d && (u = b)), u && n.children().css("width", u + "px"), n.contents().filter(function() {
				return this.nodeType == 3 && !/\S/.test(this.nodeValue)
			}).remove(), L.totalWidth = B = n.width(), c(K.settings, {
				contSize: p,
				maxSnapScroll: h.paging ? 1 : !1,
				maxScroll: 0,
				minScroll: B > p ? p - B: 0,
				snap: h.paging ? p: h.snap ? u || ".mbsc-ms-item": !1,
				elastic: B > p ? u || p: !1
			}), K.refresh())
		}
		var A, y, D, C, p, e, F, u, H, o, G, J, S, K, R, h, B, x, L = this,
		n = a(i);
		f.Base.call(this, i, l, !0);
		L.navigate = function(a, b) {
			d(m(a), b)
		};
		L.next = function(a) {
			var b = A ? A.next() : D;
			b.length && (A = b, d(A, a))
		};
		L.prev = function(a) {
			var b = A ? A.prev() : D;
			b.length && (A = b, d(A, a))
		};
		L.select = function(b) {
			H || O(a(".mbsc-ms-item-sel", n));
			g(m(b))
		};
		L.deselect = function(a) {
			O(m(a))
		};
		L.enable = function(a) {
			m(a).removeClass("mbsc-btn-d").removeAttr("data-disabled").removeAttr("aria-disabled")
		};
		L.disable = function(a) {
			m(a).addClass("mbsc-btn-d").attr("data-disabled", "true").attr("aria-disabled", "true")
		};
		L.refresh = L.position = function() {
			n.height("");
			M();
			w();
			n.height(n.height())
		};
		L.init = function(c) {
			L._init(c);
			C = a("body" == h.context ? b: h.context);
			"tabs" == h.type ? (h.select = h.select || "single", h.variant = h.variant || "b") : "options" == h.type ? (h.select = h.select || "multi", h.variant = h.variant || "a") : "menu" == h.type && (h.select = h.select || "off", h.variant = h.variant || "a");
			h.itemWidth && h.snap === k && (h.snap = !0);
			R = h.variant;
			J = "off" != h.select;
			H = "multi" == h.select;
			S = " mbsc-ms-item-sel " + (h.activeClass || "");
			y = a('<div class="mbsc-ms-c mbsc-ms-' + R + " mbsc-ms-" + h.display + " mbsc-" + h.theme + " " + (h.baseTheme ? " mbsc-" + h.baseTheme: "") + " " + (h.cssClass || "") + " " + (h.wrapperClass || "") + (h.rtl ? " mbsc-ms-rtl": " mbsc-ms-ltr") + (h.itemWidth ? " mbsc-ms-hasw": "") + ("body" == h.context ? "": " mbsc-ms-ctx") + (J ? "": " mbsc-ms-nosel") + '"><div class="mbsc-ms-sc"></div></div>').insertAfter(n);
			y.find(".mbsc-ms-sc").append(n);
			n.css("display", "").addClass("mbsc-ms " + (h.groupClass || ""));
			M();
			x("onMarkupReady", [y]);
			n.height(n.height());
			K = new j.classes.ScrollView(y[0], {
				axis: "X",
				contSize: 0,
				maxScroll: 0,
				maxSnapScroll: 1,
				minScroll: 0,
				snap: 1,
				elastic: 1,
				rtl: h.rtl,
				mousewheel: h.mousewheel,
				onBtnTap: function(a) {
					d(a, true)
				},
				onGestureStart: function(a) {
					x("onGestureStart", [a])
				},
				onGestureEnd: function(a) {
					x("onGestureEnd", [a])
				},
				onMove: function(a) {
					x("onMove", [a])
				},
				onAnimationStart: function(a) {
					x("onAnimationStart", [a])
				},
				onAnimationEnd: function(a) {
					x("onAnimationEnd", [a])
				}
			});
			w();
			y.find("img").on("load", q);
			C.on("orientationchange resize", q);
			x("onInit", [])
		};
		L.destroy = function() {
			C.off("orientationchange resize", q);
			n.height("").insertAfter(y).find(".mbsc-ms-item").width("");
			y.off().remove();
			K.destroy();
			L._destroy()
		};
		h = L.settings;
		x = L.trigger;
		L.init(l)
	};
	f.MenuStrip.prototype = {
		_class: "menustrip",
		_hasDef: !0,
		_hasTheme: !0,
		_defaults: {
			type: "options",
			display: "inline",
			layout: "liquid"
		}
	};
	j.presetShort("menustrip", "MenuStrip")
})(jQuery, window, document); (function(a) {
	a.mobiscroll.themes.menustrip["android-holo"] = {}
})(jQuery); (function(a) {
	a.mobiscroll.themes.menustrip.wp = {}
})(jQuery); (function(a) {
	a.mobiscroll.themes.menustrip.sense = {}
})(jQuery); (function(a) {
	a.mobiscroll.themes.menustrip.material = {
		onInit: function() {
			a.mobiscroll.themes.material.initRipple(a(this), ".mbsc-ms-item", "mbsc-btn-d", "mbsc-btn-nhl")
		},
		onMarkupInit: function() {
			a(".mbsc-ripple", this).remove()
		}
	}
})(jQuery); (function(a) {
	var b = a.mobile && a.mobile.version && a.mobile.version.match(/1\.4/);
	a.mobiscroll.themes.menustrip.jqm = {
		activeClass: "ui-btn-active",
		disabledClass: "ui-state-disabled",
		onThemeLoad: function(a, k) {
			var c = k.jqmSwatch || (b ? "a": "c");
			k.itemClass = "ui-btn ui-btn-up-" + c;
			k.wrapperClass = "ui-bar-" + c
		}
	}
})(jQuery); (function(a) {
	a.mobiscroll.themes.menustrip["ios-classic"] = {}
})(jQuery); (function(a) {
	a.mobiscroll.themes.menustrip.android = {}
})(jQuery); (function(a) {
	a.mobiscroll.themes.menustrip["sense-ui"] = {}
})(jQuery); (function(a) {
	a.mobiscroll.themes.menustrip.ios = {}
})(jQuery); (function(a) {
	a.mobiscroll.themes.menustrip.bootstrap = {
		wrapperClass: "popover panel panel-default",
		groupClass: "btn-group",
		activeClass: "btn-primary",
		disabledClass: "disabled",
		itemClass: "btn btn-default"
	}
})(jQuery); (function(a) {
	var b = a.mobiscroll,
	l = b.classes;
	l.Widget = function(b, c, j) {
		function f(b) {
			a(".dwcc", b).append(); ! a(".dwcc", b).hasClass("mbsc-wdg-c") && a.mobiscroll.running && (a(".dwcc", b).addClass("mbsc-wdg-c").append(s.show()), a(".mbsc-w-p", b).length || a(".dwcc", b).addClass("mbsc-w-p"))
		}
		var i, s = a(b),
		q = this;
		l.Frame.call(this, b, c, !0);
		q._generateContent = function() {
			return ""
		};
		q._markupReady = function(a) {
			"inline" != i.display && f(a)
		};
		q._markupInserted = function(a) {
			"inline" == i.display && f(a);
			a.trigger("mbsc-enhance", [{
				theme: i.theme,
				lang: i.lang
			}])
		};
		q._markupRemove = function() {
			q._context.append(s.hide())
		};
		q._processSettings = function() {
			i = q.settings;
			q.buttons.close = {
				text: i.closeText,
				handler: "cancel"
			};
			q.buttons.ok = {
				text: i.okText,
				handler: "set"
			};
			i.cssClass = (i.cssClass || "") + " mbsc-wdg";
			i.buttons = i.buttons || ("inline" == i.display ? [] : ["ok"]);
			s.hide()
		};
		j || q.init(c)
	};
	l.Widget.prototype = {
		_hasDef: !0,
		_hasTheme: !0,
		_hasContent: !0,
		_class: "widget",
		_defaults: a.extend({},
		l.Frame.prototype._defaults, {
			okText: "OK"
		})
	};
	b.themes.widget = b.themes.frame;
	b.presetShort("widget", "Widget", !1)
})(jQuery); (function(a, b) {
	var l = a.mobiscroll,
	k = {
		controls: ["start", "reset"],
		autostart: !1,
		step: 1,
		useShortLabels: !1,
		labels: "Years,Months,Days,Hours,Minutes,Seconds,".split(","),
		labelsShort: "Yrs,Mths,Days,Hrs,Mins,Secs,".split(","),
		startText: "Start",
		stopText: "Stop",
		resetText: "Reset",
		lapText: "Lap",
		hideText: "Hide"
	};
	l.presetShort("timer");
	l.presets.scroller.timer = function(c) {
		function j(a) {
			return new Date(a.getUTCFullYear(), a.getUTCMonth(), a.getUTCDate(), a.getUTCHours(), a.getUTCMinutes(), a.getUTCSeconds(), a.getUTCMilliseconds())
		}
		function f(b) {
			var c = {};
			if (ba && L[E].index > L.days.index) {
				var d, e, f, h;
				d = new Date;
				var g = D ? d: V;
				d = D ? V: d;
				d = j(d);
				g = j(g);
				c.years = g.getFullYear() - d.getFullYear();
				c.months = g.getMonth() - d.getMonth();
				c.days = g.getDate() - d.getDate();
				c.hours = g.getHours() - d.getHours();
				c.minutes = g.getMinutes() - d.getMinutes();
				c.seconds = g.getSeconds() - d.getSeconds();
				c.fract = (g.getMilliseconds() - d.getMilliseconds()) / 10;
				for (d = x.length; 0 < d; d--) e = x[d - 1],
				f = L[e],
				h = x[a.inArray(e, x) - 1],
				L[h] && 0 > c[e] && (c[h]--, c[e] += "months" == h ? 32 - (new Date(g.getFullYear(), g.getMonth(), 32)).getDate() : f.until + 1);
				"months" == E && (c.months += 12 * c.years, delete c.years)
			} else a(x).each(function(a, d) {
				L[d].index <= L[E].index && (c[d] = Math.floor(b / L[d].limit), b -= c[d] * L[d].limit)
			});
			return c
		}
		function i(b, c) {
			var f = 1,
			h = L[b],
			g = h.wheel,
			i = h.prefix,
			m = L[x[a.inArray(b, x) - 1]];
			G = 0;
			J = h.until;
			b == E && (G = Math.max(0, c[b] - 50), J = G + 100, p = G + 5, e = J - 5);
			if (h.index <= L[E].index && (!m || m.limit > X)) {
				n[b] || N[0].push(g);
				n[b] = 1;
				g.keys = [];
				g.values = [];
				g.label = h.label || "";
				X >= h.limit && (f = Math.max(Math.round(X / h.limit), 1), O = f * h.limit);
				for (d = G; d <= J; d += f) g.keys.push(d),
				g.values.push((i || "") + (10 > d ? "0": "") + d + '<span class="dwtlbl">' + (h.label || "") + "</span>")
			}
		}
		function l(b) {
			var c = [],
			d,
			e = f(b);
			a(x).each(function(a, b) {
				n[b] && (d = Math.max(Math.round(X / L[b].limit), 1), c.push(Math.round(e[b] / d) * d))
			});
			return c
		}
		function q(a) {
			ba ? (A = V - new Date, 0 > A ? (A *= -1, D = !0) : D = !1, y = 0, U = !0) : (V !== b ? (U = !1, A = 1E3 * V, D = "down" !== h.countDirection) : (A = 0, U = D = "down" !== h.countDirection), a && (y = 0))
		}
		var d, g, O, m, M, w, A, y, D, C, p, e, F, u, H, o, G, J, S, K, R = a.extend({},
		c.settings),
		h = a.extend(c.settings, k, R),
		B = h.useShortLabels ? h.labelsShort: h.labels,
		x = "years,months,days,hours,minutes,seconds,fract".split(","),
		L = {
			years: {
				index: 6,
				until: 10,
				limit: 31536E6,
				label: B[0],
				wheel: {}
			},
			months: {
				index: 5,
				until: 11,
				limit: 2592E6,
				label: B[1],
				wheel: {}
			},
			days: {
				index: 4,
				until: 31,
				limit: 864E5,
				label: B[2],
				wheel: {}
			},
			hours: {
				index: 3,
				until: 23,
				limit: 36E5,
				label: B[3],
				wheel: {}
			},
			minutes: {
				index: 2,
				until: 59,
				limit: 6E4,
				label: B[4],
				wheel: {}
			},
			seconds: {
				index: 1,
				until: 59,
				limit: 1E3,
				label: B[5],
				wheel: {}
			},
			fract: {
				index: 0,
				until: 99,
				limit: 10,
				label: B[6],
				prefix: ".",
				wheel: {}
			}
		},
		n = {},
		v = [],
		P = 0,
		W = !1,
		r = !0,
		U = !1,
		X = Math.max(10, 1E3 * h.step),
		E = h.maxWheel,
		Y = h.locked || ba,
		T = (a.isArray(h.controls) ? h.controls: []).join(","),
		V = h.targetTime,
		ba = V && V.getTime !== b,
		Z = "jqm" == h.theme,
		N = [[]];
		c.start = function() {
			r && c.reset();
			if (!W && (q(), U || !(y >= A))) W = !0,
			r = !1,
			M = new Date,
			m = y,
			h.readonly = !0,
			c.setValue(l(D ? y: A - y), !0, 0.1),
			g = setInterval(function() {
				y = new Date - M + m;
				c.setValue(l(D ? y: A - y), !0, 0.1); ! U && y + O >= A && (clearInterval(g), setTimeout(function() {
					c.stop();
					y = A;
					c.setValue(l(D ? y: 0), !0, 0.1);
					c.trigger("onFinish", [A]);
					r = !0
				},
				A - y))
			},
			O),
			a(".dwwr", C).addClass("dw-running dw-locked"),
			a(".dw-timer-st", C).removeClass(h.btnStartClass || "").addClass(h.btnStopClass || "").attr("title", h.stopText).find(".dwb-txt").text(h.stopText),
			c.trigger("onStart", [])
		};
		c.stop = function() {
			W && (W = !1, clearInterval(g), y = new Date - M + m, a(".dwwr", C).removeClass("dw-running"), a(".dw-timer-st", C).removeClass(h.btnStopClass || "").addClass(h.btnStartClass || "").attr("title", h.startText).find(".dwb-txt").text(h.startText), c.trigger("onStop", [y]))
		};
		c.reset = function() {
			c.stop();
			y = 0;
			v = [];
			P = 0;
			c.setValue(l(D ? 0 : A), !0, 0.1);
			c.settings.readonly = Y;
			r = !0;
			Y || a(".dwwr", C).removeClass("dw-locked");
			c.trigger("onReset", [])
		};
		c.lap = function() {
			W && (w = new Date - M + m, F = w - P, P = w, v.push(w), c.trigger("lap", [w, F, v]))
		};
		c.getTime = function() {
			return A
		};
		c.setTime = function(a) {
			V = a / 1E3;
			A = a
		};
		c.getElapsedTime = c.getEllapsedTime = function() {
			return W ? new Date - M + m: 0
		};
		c.setElapsedTime = c.setEllapsedTime = function(a, b) {
			r || (m = y = a, M = new Date, c.setValue(l(D ? y: A - y), !0, 0.1, !1, b))
		};
		q(!0); ! E && !A && (E = "minutes");
		E || a(x).each(function(a, b) {
			if (!E && A >= L[b].limit) return E = b,
			!1
		});
		o = f(A);
		a(x).each(function(a, b) {
			i(b, o)
		});
		O = Math.max(87, O);
		h.autostart && setTimeout(function() {
			c.start()
		},
		0);
		return {
			wheels: N,
			headerText: !1,
			readonly: Y,
			parseValue: function() {
				return l(D ? 0 : A)
			},
			formatValue: function(b) {
				var c = "",
				d = 0;
				a(x).each(function(a, e) {
					"fract" != e && n[e] && (c += b[d] + ("seconds" == e && n.fract ? "." + b[d + 1] : "") + " " + B[a] + " ", d++)
				});
				return c
			},
			validate: function(d, h, g) {
				var m, j, k = 0,
				l = c._tempWheelArray,
				d = !1;
				r && h !== b && (V = 0, a(x).each(function(a, b) {
					n[b] && (V += L[b].limit * l[k], k++)
				}), V /= 1E3, q(!0));
				if (r && 0 === h) d = !0,
				m = f(A);
				else if (!u && (l[0] < p || l[0] > e)) m = f(D ? y: A - y),
				d = !0;
				if (d && (i(E, m), S !== G || K !== J)) j = l[0],
				H = setTimeout(function() {
					S = G;
					K = J;
					u = true;
					l[0] = j;
					c.changeWheel([0], b, h !== b)
				},
				1E3 * g);
				u = !1
			},
			onBeforeShow: function() {
				h.mode = "scroller";
				h.showLabel = !0
			},
			onMarkupReady: function(b) {
				var d = 0;
				C = b;
				b.addClass("dw-timer");
				W ? a(".dwwr", b).addClass("dw-running") : a(".dwwr", b).removeClass("dw-running");
				Y && a(".dwwr", C).addClass("dw-locked");
				a(".dwbc", b).remove();
				a(".dwwl0", b).on("mousedown touchstart",
				function() {
					clearTimeout(H)
				});
				a(x).each(function(c, e) {
					n[e] && (a(".dwwl" + d, b).addClass("dwwl-" + e), d++)
				});
				var e = T.match(/start/),
				f = T.match(/reset/) && !ba,
				g = T.match(/lap/) && !ba,
				i = "inline" !== h.display;
				if (e || f || g || i) a(".dwwr", b).addClass("dw-timer-btns").append('<div class="dwbc">' + (e ? '<span class="dwbw dwbgr dwbgrf' + (!f && !g ? " dwbgrl": "") + '"><a href="#" role="button" class="dwb-e dwb dw-timer-st ' + (W ? h.btnStopClass || "": h.btnStartClass || "") + '"' + (Z ? ' data-role="button" data-icon="arrow-r" data-iconpos="notext"': "") + ' title="' + (W ? h.stopText: h.startText) + '"><span class="dwb-i"><span class="dwb-txt">' + (W ? h.stopText: h.startText) + "</span></span></a></span>": "") + (f ? '<span class="dwbw dwbgr' + (!e ? " dwbgrf": "") + (!g ? " dwbgrl": "") + '"><a href="#" role="button" class="dwb-e dwb dw-timer-r ' + (h.btnResetClass || "") + '"' + (Z ? ' data-role="button" data-icon="delete" data-iconpos="notext"': "") + ' title="' + h.resetText + '"><span class="dwb-i"><span class="dwb-txt">' + h.resetText + "</span></span></a></span>": "") + (g ? '<span class="dwbw dwbgr dwbgrl' + (!e && !f ? " dwbgrf": "") + '"><a href="#" role="button" class="dwb-e dwb dw-timer-l ' + (h.btnLapClass || "") + '"' + (Z ? ' data-role="button" data-icon="refresh" data-iconpos="notext"': "") + ' title="' + h.lapText + '"><span class="dwb-i"><span class="dwb-txt">' + h.lapText + "</span></span></a></span>": "") + (i ? '<span class="dwbw dwtcl"><a href="#" role="button" class="dwb-e dwb dw-timer-cl ' + (h.btnHideClass || "") + ' "' + (Z ? ' data-role="button" data-mini="true"': "") + ">" + h.hideText + "</a></span>": "") + "</div>"),
				c.tap(a(".dw-timer-st", b),
				function() {
					W ? c.stop() : c.start()
				},
				!0),
				c.tap(a(".dw-timer-r", b),
				function() {
					c.reset()
				},
				!0),
				c.tap(a(".dw-timer-l", b),
				function() {
					c.lap()
				},
				!0),
				c.tap(a(".dw-timer-cl", b),
				function() {
					c.hide()
				},
				!0)
			},
			onPosition: function(b) {
				a(".dwwr", b).css("min-width", 0).css("min-width", a(".dwbc", b).outerWidth())
			},
			onDestroy: function() {
				clearInterval(g)
			}
		}
	}
})(jQuery); (function(a, b) {
	function l(b) {
		var c = [Math.round(b.r).toString(16), Math.round(b.g).toString(16), Math.round(b.b).toString(16)];
		a.each(c,
		function(a, b) {
			1 == b.length && (c[a] = "0" + b)
		});
		return "#" + c.join("")
	}
	function k(a) {
		a = parseInt( - 1 < a.indexOf("#") ? a.substring(1) : a, 16);
		return {
			r: a >> 16,
			g: (a & 65280) >> 8,
			b: a & 255
		}
	}
	function c(a) {
		var b, c, d;
		b = a.h;
		var f = 255 * a.s / 100,
		a = 255 * a.v / 100;
		if (0 === f) b = c = d = a;
		else {
			var f = (255 - f) * a / 255,
			g = (a - f) * (b % 60) / 60;
			360 == b && (b = 0);
			60 > b ? (b = a, d = f, c = f + g) : 120 > b ? (c = a, d = f, b = a - g) : 180 > b ? (c = a, b = f, d = f + g) : 240 > b ? (d = a, b = f, c = a - g) : 300 > b ? (d = a, c = f, b = f + g) : 360 > b ? (b = a, c = f, d = a - g) : b = c = d = 0
		}
		return {
			r: b,
			g: c,
			b: d
		}
	}
	function j(a) {
		var b = 0,
		c;
		c = Math.min(a.r, a.g, a.b);
		var d = Math.max(a.r, a.g, a.b),
		b = d - c,
		b = (c = d ? 255 * b / d: 0) ? a.r == d ? (a.g - a.b) / b: a.g == d ? 2 + (a.b - a.r) / b: 4 + (a.r - a.g) / b: -1,
		b = 60 * b;
		0 > b && (b += 360);
		return {
			h: b,
			s: c * (100 / 255),
			v: d * (100 / 255)
		}
	}
	function f(a) {
		return l(c(a))
	}
	function i(a) {
		var b = a.h,
		c = a.l,
		a = a.s / 100,
		a = a * (50 >= c ? c: 100 - c),
		c = c + a;
		return {
			h: b,
			s: 100 * (c ? 2 * a / c: 0),
			v: c
		}
	}
	function s(a) {
		return j(k(a))
	}
	var q = a.mobiscroll,
	d = q.util.prefix,
	g = q.presets.scroller,
	O = {
		preview: !0,
		previewText: !0,
		label: "Color",
		refineLabel: "Refine",
		step: 10,
		nr: 10,
		format: "hex",
		hueText: "Hue",
		saturationText: "Saturation",
		valueText: "Value"
	};
	q.presetShort("colorpicker");
	q.presetShort("color");
	g.color = g.colorpicker = function(g) {
		function q(a) {
			return isNaN( + a) ? 0 : +a
		}
		function w(a) {
			return a.r ? l(a) : a.h ? f(a) : a
		}
		function A(a) {
			a = w(a);
			return "rgb" === v ? (a = k(a), Math.round(a.r) + "," + Math.round(a.g) + "," + Math.round(a.b)) : "hsv" === v ? (a = s(a), Math.round(a.h) + "," + Math.round(a.s) + "," + Math.round(a.v)) : a
		}
		function y(a) {
			return x ? "hsv" == v ? a.join(",") : "rgb" == v ? (a = c({
				h: a[0],
				s: a[1],
				v: a[2]
			}), Math.round(a.r) + "," + Math.round(a.g) + "," + Math.round(a.b)) : f({
				h: a[0],
				s: a[1],
				v: a[2]
			}) : n ? a[1] : a[0]
		}
		function D(a, b, c) {
			a[0].style.backgroundImage = d + ("-webkit-" == d ? "gradient(linear,left top,left bottom,from(" + b + "),to(" + c + "))": "linear-gradient(" + b + "," + c + ")")
		}
		function C(b, d) {
			var e = g._tempWheelArray;
			1 !== d && 2 !== d && D(a(".dwwl1 .dw-ul", b), f({
				h: e[0],
				s: 0,
				v: 100
			}), f({
				h: e[0],
				s: 100,
				v: 100
			}));
			2 !== d && D(a(".dwwl2 .dw-ul", b), f({
				h: e[0],
				s: e[1],
				v: 0
			}), f({
				h: e[0],
				s: e[1],
				v: 100
			}));
			if (P) {
				var h = c({
					h: e[0],
					s: e[1],
					v: e[2]
				}),
				h = 0.299 * h.r + 0.587 * h.g + 0.114 * h.b;
				a(".dw-color-preview", b).attr("style", "background:" + f({
					h: e[0],
					s: e[1],
					v: e[2]
				}) + ";color:" + (130 < h ? "#000": "#fff")).text(W ? y(e) : "")
			}
		}
		function p() {
			var a = 0,
			b = {
				keys: [],
				values: [],
				labels: [],
				label: r
			},
			c = {
				keys: [],
				values: [],
				labels: [],
				label: U
			},
			d = {
				keys: [],
				values: [],
				labels: [],
				label: X
			};
			for (a; 360 > a; a += 3) b.keys.push(a),
			b.values.push('<div class="dw-color" style="background:' + f({
				h: a,
				s: 100,
				v: 100
			}) + '"><div class="dw-color-hl"></div></div>'),
			b.labels.push(a);
			for (a = 0; 101 > a; a += 1) c.keys.push(a),
			d.keys.push(a),
			c.values.push('<div class="dw-color"><div class="dw-color-hl"></div></div>'),
			d.values.push('<div class="dw-color"><div class="dw-color-hl"></div></div>'),
			c.labels.push(a),
			d.labels.push(a);
			return [[b, c, d]]
		}
		function e(b, c, d) {
			var e, f, g = {
				keys: [],
				values: [],
				label: c || B.label
			};
			a.each(b,
			function(a, b) {
				e = w(b);
				f = A(b);
				g.keys.push(f);
				g.values.push('<div class="dw-cbc"><div class="dw-cb' + ("circle" === B.style ? " dw-cb-circle": "") + '" style="background:' + e + '"></div></div>' + f);
				d && (J[f] = d)
			});
			return g
		}
		function F(a, b, c) {
			var d, e = a.h,
			g = (2 - a.s / 100) * a.v,
			a = a.s * a.v,
			a = (d = 100 >= g ? g: 200 - g) ? a / d: 0;
			d = g / 2 - c / 2 * b;
			for (g = []; 0 > d + b;) d += b;
			for (c = d + (c + 1) * b; 100 <= c - b;) c -= b;
			for (; d <= c; d += b) g.push(f(i({
				h: e,
				s: a,
				l: Math.max(0, Math.min(d, 100))
			})));
			return g
		}
		var u, H, o, G, J = {},
		S = {},
		K = {},
		R, h = a.extend({},
		g.settings),
		B = a.extend(g.settings, O, h),
		x = !B.colors,
		h = a.isArray(B.colors) ? B.colors: [B.colors],
		L = B.defaultValue || h[0],
		n = B.refine && 1 < h.length,
		v = B.format,
		P = x && B.preview,
		W = B.previewText,
		r = B.hueText,
		U = B.saturationText,
		X = B.valueText; ! x && 1 == h.length && (h = F(s(w(h[0])), B.step, B.nr));
		x ? (G = p(), K = {
			width: 70,
			height: 15,
			rows: 13,
			speedUnit: 0.006,
			timeUnit: 0.05,
			showLabel: !0
		}) : n ? (a.each(h,
		function(a, b) {
			H = w(b);
			o = A(b);
			S[o] = e(F(s(H), B.step, B.nr), B.refineLabel, o);
			a || (u = S[o])
		}), G = [[e(h), u]]) : (K = {
			width: 180
		},
		G = [[e(h)]]);
		return a.extend({
			wheels: G,
			parseValue: function(a) {
				if (x) {
					if (a = a || L) {
						if (v == "hsv") {
							a = a.split(",");
							a = {
								h: q(a[0]),
								s: q(a[1]),
								v: q(a[2])
							}
						} else if (v == "rgb") {
							a = a.split(",");
							a = j({
								r: q(a[0]),
								g: q(a[1]),
								b: q(a[2])
							})
						} else {
							a = a.replace("#", "");
							a.length == 3 && (a = a[0] + a[0] + a[1] + a[1] + a[2] + a[2]);
							a = s(a)
						}
						var b = Math.round(a.h);
						return [Math.floor(b / 3) * 3, Math.round(a.s), Math.round(a.v)]
					}
					return [0, 100, 100]
				}
				if (n) {
					if (a && J[a]) return [J[a], a];
					A(L);
					return [J[L], L]
				}
				return [a || A(L)]
			},
			formatValue: y,
			onBeforeShow: function() {
				if (x) B.mode = "scroller";
				if (P) B.headerText = false
			},
			onMarkupReady: function(a) {
				a.addClass("dw-colorpicker");
				P && a.find(".dwc").before('<div class="dw-color-preview"></div>');
				if (x) {
					a.addClass("dw-cp-hsv");
					C(a)
				}
			},
			validate: function(a, c) {
				var d = g._tempWheelArray;
				if (x) setTimeout(function() {
					C(a, c)
				},
				1);
				else if (n && !c && !R) {
					R = true;
					G[0][1] = S[d[0]];
					c === 0 && (d[1] = d[0]);
					g.changeWheel([1], b, c !== b)
				}
				R = false
			}
		},
		K)
	};
	q.colorpicker = {
		hsv2hex: f,
		hsv2rgb: c,
		rgb2hsv: j,
		rgb2hex: l,
		hex2rgb: k,
		hex2hsv: s
	}
})(jQuery); (function(a, b) {
	var l = a.mobiscroll,
	k = l.presets.scroller,
	c = l.datetime,
	j = l.util.testTouch,
	f = {
		autoCorrect: !0,
		showSelector: !0,
		minRange: 1,
		fromText: "Start",
		toText: "End"
	};
	l.presetShort("rangepicker");
	l.presetShort("range");
	k.range = k.rangepicker = function(i) {
		function l(a, b) {
			a && (a.setFullYear(b.getFullYear()), a.setMonth(b.getMonth()), a.setDate(b.getDate()))
		}
		function q(b, d) {
			var f = !0;
			if (b && e && F && (F - e > h.maxRange - 1 && (f = !1, K ? e = new Date(F - h.maxRange + 1) : F = new Date( + e + h.maxRange - 1)), F - e < h.minRange - 1)) f = !1,
			K ? e = new Date(F - h.minRange + 1) : F = new Date( + e + h.minRange - 1);
			if (!e || !F) f = !1;
			if (d) {
				var g, i, j, k, l, n = 0,
				o = x || !K ? " dw-cal-day-hl dw-cal-sel-start": " dw-cal-sel-start",
				q = x || K ? " dw-cal-day-hl dw-cal-sel-end": " dw-cal-sel-end";
				C = e ? c.formatDate(w, e, h) : "";
				p = F ? c.formatDate(w, F, h) : "";
				if (m && (a(".dw-drv0", m).html(C || "&nbsp;"), a(".dw-drv1", m).html(p || "&nbsp;"), g = e ? new Date(e) : null, j = F ? new Date(F) : null, !g && j && (g = new Date(j)), !j && g && (j = new Date(g)), l = K ? j: g, a(".dw-cal-table .dw-sel .dw-i", m).removeClass(L), a(".dw-cal-table .dw-cal-day-hl", m).removeClass(v), a(".dw-cal-table .dw-sel", m).removeClass("dw-sel dw-cal-sel-start dw-cal-sel-end").removeAttr("aria-selected"), g && j)) {
					i = g.setHours(0, 0, 0, 0);
					for (k = j.setHours(0, 0, 0, 0); j >= g && 84 > n;) a('.dw-cal-day[data-full="' + l.getFullYear() + "-" + l.getMonth() + "-" + l.getDate() + '"]', m).addClass("dw-sel" + (l.getTime() === i ? o: "") + (l.getTime() === k ? q: "")).attr("aria-selected", "true").find(".dw-i ").addClass(L),
					l.setDate(l.getDate() + (K ? -1 : 1)),
					n++
				}
			}
			return f
		}
		function d(a) {
			a.addClass("dw-sel").attr("aria-checked", "true").find(".dw-dr").addClass(L)
		}
		function g() {
			G && (a(".dw-dr-c", m).removeClass("dw-sel").removeAttr("aria-checked").find(".dw-dr", m).removeClass(L), x ? (e && d(a(".dw-dr-c", m).eq(0)), F && d(a(".dw-dr-c", m).eq(1))) : d(a(".dw-dr-c", m).eq(K)))
		}
		var O, m, M, w, A, y, D, C, p, e, F, u, H, o, G, J = i._startDate,
		S = i._endDate,
		K = 0;
		A = new Date;
		var R = a.extend({},
		i.settings),
		h = a.extend(i.settings, f, R),
		B = h.anchor,
		x = h.rangeTap,
		L = h.activeClass || "",
		n = "dwb-d " + (h.disabledClass || ""),
		v = "dw-cal-day-hl",
		P = null === h.defaultValue ? [] : h.defaultValue || [new Date(A.setHours(0, 0, 0, 0)), new Date(A.getFullYear(), A.getMonth(), A.getDate() + 6, 23, 59, 59, 999)];
		x && (h.tabs = !0);
		A = k.calbase.call(this, i);
		O = a.extend({},
		A);
		w = i.format;
		u = "time" === h.controls.join("");
		G = 1 == h.controls.length && "calendar" == h.controls[0] ? h.showSelector: !0;
		h.startInput && (H = a(h.startInput).prop("readonly"), i.attachShow(a(h.startInput).prop("readonly", !0),
		function() {
			K = 0;
			h.anchor = B || a(h.startInput)
		}));
		h.endInput && (o = a(h.endInput).prop("readonly"), i.attachShow(a(h.endInput).prop("readonly", !0),
		function() {
			K = 1;
			h.anchor = B || a(h.endInput)
		}));
		i.setVal = function(a, d, f, g, j) {
			var k = a || [];
			if (k[0] === b || k[0] === null || k[0].getTime) {
				D = true;
				C = (e = k[0] || null) ? c.formatDate(w, e, h) : "";
				K || (a = O.parseValue(C, i))
			}
			if (k[1] === b || k[1] === null || k[1].getTime) {
				D = true;
				p = (F = k[1] || null) ? c.formatDate(w, F, h) : "";
				K && (a = O.parseValue(p, i))
			}
			if (!g) {
				i._startDate = J = e;
				i._endDate = S = F
			}
			i._setVal(a, d, f, g, j)
		};
		i.getVal = function(a) {
			return a ? [e, F] : i._hasValue ? [J, S] : null
		};
		i.getDayProps = function(a) {
			var b = e ? new Date(e.getFullYear(), e.getMonth(), e.getDate()) : null,
			c = F ? new Date(F.getFullYear(), F.getMonth(), F.getDate()) : null;
			return {
				selected: b && c && a >= b && a <= F,
				cssClass: ((x || !K) && b && b.getTime() === a.getTime() || (x || K) && c && c.getTime() === a.getTime() ? v: "") + (b && b.getTime() === a.getTime() ? " dw-cal-sel-start": "") + (c && c.getTime() === a.getTime() ? " dw-cal-sel-end": "")
			}
		};
		i.setActiveDate = function(b) {
			b = (K = b == "start" ? 0 : 1) ? F: e;
			if (i.isVisible()) {
				if (!x) {
					g();
					a(".dw-cal-table .dw-cal-day-hl", m).removeClass(v);
					b && a('.dw-cal-day[data-full="' + b.getFullYear() + "-" + b.getMonth() + "-" + b.getDate() + '"]', m).addClass(v)
				}
				if (b) {
					y = true;
					i.setDate(b, false, 0.2, true)
				}
			}
		};
		i.setValue = function(a, b, c, d, e) {
			i.setVal(a, b, e, d, c)
		};
		i.getValue = i.getVal;
		a.extend(A, {
			highlight: !1,
			divergentDayChange: !1,
			formatValue: function() {
				return C + (h.endInput ? "": p ? " - " + p: "")
			},
			parseValue: function(b) {
				b = b ? b.split(" - ") : [];
				h.defaultValue = P[1];
				S = h.endInput ? a(h.endInput).val() ? c.parseDate(w, a(h.endInput).val(), h) : P[1] : b[1] ? c.parseDate(w, b[1], h) : P[1];
				h.defaultValue = P[0];
				J = h.startInput ? a(h.startInput).val() ? c.parseDate(w, a(h.startInput).val(), h) : P[0] : b[0] ? c.parseDate(w, b[0], h) : P[0];
				h.defaultValue = P[K];
				C = J ? c.formatDate(w, J, h) : "";
				p = S ? c.formatDate(w, S, h) : "";
				i._startDate = J;
				i._endDate = S;
				return O.parseValue(K ? p: C, i)
			},
			onValueFill: function(b, c) {
				i._startDate = J = e;
				i._endDate = S = F;
				if (h.startInput) {
					a(h.startInput).val(C);
					c && a(h.startInput).change()
				}
				if (h.endInput) {
					a(h.endInput).val(p);
					c && a(h.endInput).change()
				}
			},
			onBeforeClose: function(a, b) {
				if (b === "set" && !q(true, true)) {
					i.setActiveDate(K ? "start": "end");
					return false
				}
			},
			onHide: function() {
				O.onHide.call(i);
				K = 0;
				m = null;
				h.anchor = B
			},
			onClear: function() {
				x && (K = 0)
			},
			onBeforeShow: function() {
				h.headerText = false;
				e = J;
				F = S;
				if (h.counter) h.headerText = function() {
					var a = e && F ? Math.max(1, Math.round(((new Date(F)).setHours(0, 0, 0, 0) - (new Date(e)).setHours(0, 0, 0, 0)) / 864E5) + 1) : 0;
					return (a > 1 ? h.selectedPluralText || h.selectedText: h.selectedText).replace(/{count}/, a)
				};
				D = true
			},
			onMarkupReady: function(b) {
				var c;
				m = b;
				if (e) {
					y = true;
					i.setDate(e, false, 0, true);
					e = i.getDate(true)
				}
				if (F) {
					y = true;
					i.setDate(F, false, 0, true);
					F = i.getDate(true)
				}
				if (K && F || !K && e) {
					y = true;
					i.setDate(K ? F: e, false, 0, true)
				}
				O.onMarkupReady.call(this, b);
				b.addClass("dw-range");
				if (G) {
					c = '<div class="dw-dr-t" role="radiogroup"><div class="dw-dr-c dw-dr0"><div role="radio" class="dwb-e dwb-nhl dw-i dw-dr">' + h.fromText + '<div class="dw-drv dw-drv0">' + (C || "&nbsp;") + '</div></div></div><div class="dw-dr-c dw-dr1"><div role="radio" class="dwb-e dwb-nhl dw-i dw-dr">' + h.toText + '<div class="dw-drv dw-drv1">' + (p || "&nbsp;") + "</div></div></div></div>";
					a(".dw-cal-tabs", b).before(c);
					g()
				}
				a(".dw-dr-c", b).on("touchstart click",
				function(b) {
					if (j(b, this)) {
						i.showMonthView();
						i.setActiveDate(a(this).index() ? "end": "start")
					}
				})
			},
			onDayChange: function(a) {
				a.active = K ? "end": "start";
				M = true
			},
			onSetDate: function(c) {
				var d = c.date,
				f = i.order;
				if (!y) {
					f.h === b && d.setHours(K ? 23 : 0);
					f.i === b && d.setMinutes(K ? 59 : 0);
					f.s === b && d.setSeconds(K ? 59 : 0);
					d.setMilliseconds(K ? 999 : 0);
					if (!D || M) {
						if (x && M) {
							K == 1 && d < e && (K = 0);
							K ? d.setHours(23, 59, 59, 999) : d.setHours(0, 0, 0, 0)
						}
						K ? F = new Date(d) : e = new Date(d);
						if (u) {
							l(e, d);
							l(F, d)
						}
						x && M && !K && (F = null)
					}
				}
				i._isValid = q(D || M || h.autoCorrect, !y);
				c.active = K ? "end": "start";
				if (!y && x) {
					M && (K = K ? 0 : 1);
					g()
				}
				i.isVisible() && (i._isValid ? a(".dwb-s .dwb", i._markup).removeClass(n) : a(".dwb-s .dwb", i._markup).addClass(n));
				y = D = M = false
			},
			onTabChange: function() {
				q(true, true)
			},
			onDestroy: function() {
				a(h.startInput).prop("readonly", H);
				a(h.endInput).prop("readonly", o)
			}
		});
		return A
	}
})(jQuery); (function(a, b) {
	var l = a.mobiscroll,
	k = {
		inputClass: "",
		values: 5,
		order: "desc",
		style: "icon",
		invalid: [],
		layout: "fixed",
		icon: {
			filled: "star3",
			empty: "star3"
		}
	};
	l.presetShort("rating");
	l.presets.scroller.rating = function(c) {
		var j = a.extend({},
		c.settings),
		f = a.extend(c.settings, k, j),
		i = a(this),
		j = this.id + "_dummy",
		s = a('label[for="' + this.id + '"]').attr("for", j),
		q = f.label !== b ? f.label: s.length ? s.text() : i.attr("name"),
		d = f.defaultValue,
		s = [[]],
		q = {
			keys: [],
			values: [],
			labels: [],
			label: q
		},
		g = {},
		O = [],
		m,
		M = !1,
		w,
		A,
		y,
		D,
		C,
		p,
		e = "grade" === f.style ? "circle": "icon";
		i.is("select") && (f.values = {},
		a("option", i).each(function() {
			f.values[a(this).val()] = a(this).text()
		}), a("#" + j).remove());
		if (a.isArray(f.values)) for (w = 0; w < f.values.length; w++) y = +f.values[w],
		isNaN(y) && (y = w + 1, M = !0),
		O.push({
			order: y,
			key: f.values[w],
			value: f.values[w]
		});
		else if (a.isPlainObject(f.values)) for (A in w = 1, M = !0, f.values) y = +A,
		isNaN(y) && (y = w),
		O.push({
			order: y,
			key: A,
			value: f.values[A]
		}),
		w++;
		else for (w = 1; w <= f.values; w++) O.push({
			order: w,
			key: w,
			value: w
		});
		f.showText === b && M && (f.showText = !0);
		f.icon.empty === b && (f.icon.empty = f.icon.filled);
		O.sort(function(a, b) {
			return f.order == "desc" ? b.order - a.order: a.order - b.order
		});
		p = "desc" == f.order ? O[0].order: O[O.length - 1].order;
		for (w = 0; w < O.length; w++) {
			C = O[w].order;
			y = O[w].key;
			D = O[w].value;
			M = "";
			for (A = 1; A < C + 1; A++) M += '<span class="mbsc-rating-' + e + ("circle" === e ? "": " mbsc-ic mbsc-ic-" + f.icon.filled) + ' ">' + ("circle" == e ? A: " ") + "</span>";
			for (A = C + 1; A <= p; A++) M += '<span class="mbsc-rating-' + e + ("circle" === e ? " mbsc-rating-circle-unf": " mbsc-ic mbsc-ic-" + (f.icon.empty ? f.icon.empty + " mbsc-rating-icon-unf": "") + (f.icon.empty === f.icon.filled ? " mbsc-rating-icon-same": "")) + '"></span>';
			d === b && (d = y);
			M += f.showText ? '<span class="mbsc-rating-txt">' + D + "</span>": "";
			q.keys.push(y);
			q.values.push(M);
			q.labels.push(D);
			g[y] = D
		}
		i.is("select") && (m = a('<input type="text" id="' + j + '" value="' + g[i.val()] + '" class="' + f.inputClass + '" placeholder="' + (f.placeholder || "") + '" readonly />').insertBefore(i));
		s[0].push(q);
		m && c.attachShow(m);
		i.is("select") && i.hide().closest(".ui-field-contain").trigger("create");
		c.getVal = function(a) {
			a = c._hasValue ? c[a ? "_tempWheelArray": "_wheelArray"][0] : null;
			return l.util.isNumeric(a) ? +a: a
		};
		return {
			anchor: m,
			wheels: s,
			headerText: !1,
			formatValue: function(a) {
				return g[a[0]]
			},
			parseValue: function(a) {
				for (var b in g) if (m && b == a || !m && g[b] == a) return [b];
				return [d]
			},
			validate: function(b) {
				a.each(f.invalid,
				function(c, d) {
					a('.dw-li[data-val="' + d + '"]', b).removeClass("dw-v")
				})
			},
			onMarkupReady: function(a) {
				a.addClass("dw-rating")
			},
			onValueFill: function(a) {
				if (m) {
					m.val(a);
					i.val(c._tempWheelArray[0])
				}
			},
			onDestroy: function() {
				m && m.remove();
				i.show()
			}
		}
	}
})(jQuery); (function(a) {
	a.each(["date", "time", "datetime"],
	function(b, l) {
		a.mobiscroll.presetShort(l)
	})
})(jQuery); (function(a, b) {
	var l = a.mobiscroll,
	k = l.util,
	c = k.isString,
	j = {
		batch: 40,
		inputClass: "",
		invalid: [],
		rtl: !1,
		showInput: !0,
		groupLabel: "Groups",
		checkIcon: "checkmark",
		dataText: "text",
		dataValue: "value",
		dataGroup: "group",
		dataDisabled: "disabled"
	};
	l.presetShort("select");
	l.presets.scroller.select = function(f) {
		function i() {
			var c, d, e, f, g, h = 0,
			i = 0,
			j = {};
			ca = {};
			la = {};
			H = [];
			D = [];
			ja.length = 0;
			ba ? a.each(v.data,
			function(a, h) {
				f = h[v.dataText];
				g = h[v.dataValue];
				d = h[v.dataGroup];
				e = {
					value: g,
					text: f,
					index: a
				};
				ca[g] = e;
				H.push(e);
				Z && (j[d] === b ? (c = {
					text: d,
					value: i,
					options: [],
					index: i
				},
				la[i] = c, j[d] = i, D.push(c), i++) : c = la[j[d]], ea && (e.index = c.options.length), e.group = j[d], c.options.push(e));
				h[v.dataDisabled] && ja.push(g)
			}) : Z ? a("optgroup", r).each(function(b) {
				la[b] = {
					text: this.label,
					value: b,
					options: [],
					index: b
				};
				D.push(la[b]);
				a("option", this).each(function(a) {
					e = {
						value: this.value,
						text: this.text,
						index: ea ? a: h++,
						group: b
					};
					ca[this.value] = e;
					H.push(e);
					la[b].options.push(e);
					this.disabled && ja.push(this.value)
				})
			}) : a("option", r).each(function(a) {
				e = {
					value: this.value,
					text: this.text,
					index: a
				};
				ca[this.value] = e;
				H.push(e);
				this.disabled && ja.push(this.value)
			});
			H.length && (A = H[0].value);
			ha && (H = [], h = 0, a.each(la,
			function(b, c) {
				g = "__group" + b;
				e = {
					text: c.text,
					value: g,
					group: b,
					index: h++
				};
				ca[g] = e;
				H.push(e);
				ja.push(e.value);
				a.each(c.options,
				function(a, b) {
					b.index = h++;
					H.push(b)
				})
			}))
		}
		function l(a, c, d, e, f, g, i) {
			var j = [],
			k = [],
			e = Math.max(0, (d[e] !== b ? d[e].index: 0) - P),
			m = Math.min(c.length - 1, e + 2 * P);
			if (h[f] !== e || B[f] !== m) {
				for (d = e; d <= m; d++) k.push(c[d].text),
				j.push(c[d].value);
				R[f] = !0;
				x[f] = e;
				L[f] = m;
				c = {
					multiple: g,
					values: k,
					keys: j,
					label: i
				};
				W ? a[0][f] = c: a[f] = [c]
			} else R[f] = !1
		}
		function q(a) {
			l(a, D, la, y, e, !1, v.groupLabel)
		}
		function d(a) {
			l(a, ea ? la[y].options: H, ca, G, o, U, Y)
		}
		function g(d) {
			U && (d && c(d) && (d = d.split(",")), a.isArray(d) && (d = d[0]));
			G = d === b || null === d || "" === d || !ca[d] ? A: d;
			N && (S = y = ca[G] ? ca[G].group: null)
		}
		function O(a, b) {
			var c = a ? f._tempWheelArray: f._hasValue ? f._wheelArray: null;
			return c ? v.group && b ? c: c[o] : null
		}
		function m() {
			var a, b;
			a = [];
			var c = 0;
			if (U) {
				b = [];
				for (c in t) a.push(ca[c] ? ca[c].text: ""),
				b.push(c);
				a = a.join(", ")
			} else b = G,
			a = ca[G] ? ca[G].text: "";
			f._tempValue = b;
			u.val(a);
			r.val(b)
		}
		function M(a) {
			var b = a.attr("data-val"),
			c = a.hasClass("dw-msel");
			if (U && a.closest(".dwwl").hasClass("dwwms")) return a.hasClass("dw-v") && (c ? (a.removeClass(T).removeAttr("aria-selected"), delete t[b]) : k.objectToArray(t).length < X && (a.addClass(T).attr("aria-selected", "true"), t[b] = b)),
			!1;
			a.hasClass("dw-w-gr") && (p = a.attr("data-val"))
		}
		var w, A, y, D, C, p, e, F, u, H, o, G, J, S, K, R = {},
		h = {},
		B = {},
		x = {},
		L = {},
		n = a.extend({},
		f.settings),
		v = a.extend(f.settings, j, n),
		P = v.batch,
		n = v.layout || (/top|bottom/.test(v.display) ? "liquid": ""),
		W = "liquid" == n,
		r = a(this),
		U = v.multiple || r.prop("multiple"),
		X = k.isNumeric(v.multiple) ? v.multiple: Infinity,
		E = this.id + "_dummy";
		F = a('label[for="' + this.id + '"]').attr("for", E);
		var Y = v.label !== b ? v.label: F.length ? F.text() : r.attr("name"),
		T = "dw-msel mbsc-ic mbsc-ic-" + v.checkIcon,
		V = v.readonly,
		ba = !!v.data,
		Z = ba ? !!v.group: a("optgroup", r).length;
		F = v.group;
		var N = Z && F && !1 !== F.groupWheel,
		ea = Z && F && N && !0 === F.clustered,
		ha = Z && (!F || !1 !== F.header && !ea),
		ga = r.val() || [],
		ja = [],
		t = {},
		ca = {},
		la = {};
		v.invalid.length || (v.invalid = ja);
		N ? (e = 0, o = 1) : (e = -1, o = 0);
		if (U) {
			r.prop("multiple", !0);
			ga && c(ga) && (ga = ga.split(","));
			for (F = 0; F < ga.length; F++) t[ga[F]] = ga[F]
		}
		i();
		g(r.val());
		a("#" + E).remove();
		r.next().is("input.mbsc-control") ? u = r.off(".mbsc-form").next().removeAttr("tabindex") : (u = a('<input type="text" id="' + E + '" class="mbsc-control mbsc-control-ev ' + v.inputClass + '" readonly />'), v.showInput && u.insertBefore(r));
		f.attachShow(u.attr("placeholder", v.placeholder || ""));
		r.addClass("dw-hsel").attr("tabindex", -1).closest(".ui-field-contain").trigger("create");
		m();
		f.setVal = function(a, b, d, e, g) {
			if (U) {
				a && c(a) && (a = a.split(","));
				t = k.arrayToObject(a);
				a = a ? a[0] : null
			}
			f._setVal(a, b, d, e, g)
		};
		f.getVal = function(a, b) {
			return U ? k.objectToArray(t) : O(a, b)
		};
		f.refresh = function() {
			i();
			h = {};
			B = {};
			var a = v,
			b = [[]];
			N && q(b);
			d(b);
			a.wheels = b;
			h[e] = x[e];
			B[e] = L[e];
			h[o] = x[o];
			B[o] = L[o];
			w = true;
			g(G);
			f._tempWheelArray = N ? [y, G] : [G];
			f._isVisible && f.changeWheel(N ? [e, o] : [o])
		};
		f.getValues = f.getVal;
		f.getValue = O;
		return {
			width: 50,
			layout: n,
			headerText: !1,
			anchor: u,
			confirmOnTap: N ? [!1, !0] : !0,
			formatValue: function(a) {
				var b, c = [];
				if (U) {
					for (b in t) c.push(ca[b] ? ca[b].text: "");
					return c.join(", ")
				}
				a = a[o];
				return ca[a] ? ca[a].text: ""
			},
			parseValue: function(a) {
				g(a === b ? r.val() : a);
				return N ? [y, G] : [G]
			},
			onValueTap: M,
			onValueFill: m,
			onBeforeShow: function() {
				if (U && v.counter) v.headerText = function() {
					var b = 0;
					a.each(t,
					function() {
						b++
					});
					return (b > 1 ? v.selectedPluralText || v.selectedText: v.selectedText).replace(/{count}/, b)
				};
				g(r.val());
				if (N) f._tempWheelArray = [y, G];
				f.refresh()
			},
			onMarkupReady: function(b) {
				b.addClass("dw-select");
				a(".dwwl" + e, b).on("mousedown touchstart",
				function() {
					clearTimeout(K)
				});
				a(".dwwl" + o, b).on("mousedown touchstart",
				function() {
					C || clearTimeout(K)
				});
				ha && a(".dwwl" + o, b).addClass("dw-select-gr");
				if (U) {
					b.addClass("dwms");
					a(".dwwl", b).on("keydown",
					function(b) {
						if (b.keyCode == 32) {
							b.preventDefault();
							b.stopPropagation();
							M(a(".dw-sel", this))
						}
					}).eq(o).attr("aria-multiselectable", "true");
					J = a.extend({},
					t)
				}
			},
			validate: function(c, g, i, j) {
				var k, m = [];
				k = f.getArrayVal(true);
				var l = k[e],
				n = k[o],
				r = a(".dw-ul", c).eq(e),
				s = a(".dw-ul", c).eq(o);
				h[e] > 1 && a(".dw-li", r).slice(0, 2).removeClass("dw-v").addClass("dw-fv");
				B[e] < D.length - 2 && a(".dw-li", r).slice( - 2).removeClass("dw-v").addClass("dw-fv");
				h[o] > 1 && a(".dw-li", s).slice(0, 2).removeClass("dw-v").addClass("dw-fv");
				B[o] < (ea ? la[l].options: H).length - 2 && a(".dw-li", s).slice( - 2).removeClass("dw-v").addClass("dw-fv");
				if (!w) {
					G = n;
					if (N) {
						y = ca[G].group;
						if (g === b || g === e) {
							y = +k[e];
							C = false;
							if (y !== S) {
								G = la[y].options[0].value;
								h[o] = null;
								B[o] = null;
								C = true;
								v.readonly = [false, true]
							} else v.readonly = V
						}
					}
					if (Z && (/__group/.test(G) || p)) {
						n = G = la[ca[p || G].group].options[0].value;
						p = false
					}
					f._tempWheelArray = N ? [l, n] : [n];
					if (N) {
						q(v.wheels);
						R[e] && m.push(e)
					}
					d(v.wheels);
					R[o] && m.push(o);
					clearTimeout(K);
					K = setTimeout(function() {
						if (m.length) {
							w = true;
							C = false;
							S = y;
							h[e] = x[e];
							B[e] = L[e];
							h[o] = x[o];
							B[o] = L[o];
							f._tempWheelArray = N ? [l, G] : [G];
							f.changeWheel(m, 0, g !== b)
						}
						if (N) {
							g === o && f.scroll(r, e, f.getValidCell(y, r, j, false, true).v, 0.1);
							f._tempWheelArray[e] = y
						}
						v.readonly = V
					},
					g === b ? 100 : i * 1E3);
					if (m.length) return C ? false: true
				}
				if (g === b && U) {
					k = t;
					i = 0;
					a(".dwwl" + o + " .dw-li", c).removeClass(T).removeAttr("aria-selected");
					for (i in k) a(".dwwl" + o + ' .dw-li[data-val="' + k[i] + '"]', c).addClass(T).attr("aria-selected", "true")
				}
				ha && a('.dw-li[data-val^="__group"]', c).addClass("dw-w-gr");
				a.each(v.invalid,
				function(b, c) {
					a('.dw-li[data-val="' + c + '"]', s).removeClass("dw-v dw-fv")
				});
				w = false
			},
			onValidated: function() {
				G = f._tempWheelArray[o]
			},
			onClear: function(b) {
				t = {};
				u.val("");
				a(".dwwl" + o + " .dw-li", b).removeClass(T).removeAttr("aria-selected")
			},
			onCancel: function() { ! f.live && U && (t = a.extend({},
				J))
			},
			onDestroy: function() {
				u.hasClass("mbsc-control") || u.remove();
				r.removeClass("dw-hsel").removeAttr("tabindex")
			}
		}
	}
})(jQuery); (function(a) {
	var a = a.mobiscroll,
	b = a.presets.scroller;
	b.treelist = b.list;
	a.presetShort("list");
	a.presetShort("treelist")
})(jQuery); (function(a) {
	var b = a.mobiscroll,
	l = b.presets.scroller;
	b.presetShort("image");
	l.image = function(b) {
		b.settings.enhance && (b._processMarkup = function(b) {
			var j = b.attr("data-icon");
			b.children().each(function(b, c) {
				c = a(c);
				c.is("img") ? a('<div class="mbsc-img-c"></div>').insertAfter(c).append(c.addClass("mbsc-img")) : c.is("p") && c.addClass("mbsc-img-txt")
			});
			j && b.prepend('<div class="mbsc-ic mbsc-ic-' + j + '"></div');
			b.html('<div class="mbsc-img-w">' + b.html() + "</div>");
			return b.html()
		});
		return l.list.call(this, b)
	}
})(jQuery); (function(a) {
	var b = a.mobiscroll,
	l = b.presets.scroller,
	k = {
		min: 0,
		max: 100,
		defUnit: "km",
		units: "m,km,in,ft,yd,mi".split(",")
	},
	c = {
		mm: 0.001,
		cm: 0.01,
		dm: 0.1,
		m: 1,
		dam: 10,
		hm: 100,
		km: 1E3,
		"in": 0.0254,
		ft: 0.3048,
		yd: 0.9144,
		ch: 20.1168,
		fur: 201.168,
		mi: 1609.344,
		lea: 4828.032
	};
	b.presetShort("distance");
	l.distance = function(b) {
		var f = a.extend({},
		k, b.settings),
		i = [],
		s,
		q;
		if (f.units) for (q = 0; q < f.units.length; q++) s = f.units[q],
		c[s] && i.push(s);
		a.extend(b.settings, f, {
			sign: !1,
			units: i,
			unitNames: null,
			convert: function(a, b, f) {
				return a * c[b] / c[f]
			}
		});
		return l.measurement.call(this, b)
	}
})(jQuery); (function(a) {
	function b(b, d) {
		var f = s(d, "X", !0),
		i = s(d, "Y", !0),
		j = b.offset(),
		k = f - j.left,
		w = i - j.top,
		k = Math.max(k, b[0].offsetWidth - k),
		w = Math.max(w, b[0].offsetHeight - w),
		w = 2 * Math.sqrt(Math.pow(k, 2) + Math.pow(w, 2));
		l(c);
		c = a('<span class="mbsc-ripple"></span>').css({
			width: w,
			height: w,
			top: i - j.top - w / 2,
			left: f - j.left - w / 2
		}).appendTo(b);
		setTimeout(function() {
			c.addClass("mbsc-ripple-scaled mbsc-ripple-visible")
		},
		10)
	}
	function l(a) {
		setTimeout(function() {
			a && (a.removeClass("mbsc-ripple-visible"), setTimeout(function() {
				a.remove()
			},
			2E3))
		},
		100)
	}
	var k, c, j = a.mobiscroll,
	f = j.util,
	i = f.testTouch,
	s = f.getCoord;
	j.themes.material = {
		addRipple: b,
		removeRipple: function() {
			l(c)
		},
		initRipple: function(f, d, g, j) {
			var m, M;
			f.off(".mbsc-ripple").on("touchstart.mbsc-ripple mousedown.mbsc-ripple", d,
			function(c) {
				i(c, this) && (m = s(c, "X"), M = s(c, "Y"), k = a(this), !k.hasClass(g) && !k.hasClass(j) ? b(k, c) : k = null)
			}).on("touchmove.mbsc-ripple mousemove.mbsc-ripple", d,
			function(a) {
				if (k && 9 < Math.abs(s(a, "X") - m) || 9 < Math.abs(s(a, "Y") - M)) l(c),
				k = null
			}).on("touchend.mbsc-ripple touchcancel.mbsc-ripple mouseleave.mbsc-ripple mouseup.mbsc-ripple", d,
			function() {
				k && (setTimeout(function() {
					l(c)
				},
				100), k = null)
			})
		}
	}
})(jQuery); (function(a) {
	a.mobiscroll.themes.frame["material-dark"] = {
		baseTheme: "material",
		showLabel: !1,
		headerText: !1,
		btnWidth: !1,
		selectedLineHeight: !0,
		selectedLineBorder: 1,
		dateOrder: "MMddyy",
		weekDays: "min",
		deleteIcon: "material-backspace",
		icon: {
			filled: "material-star",
			empty: "material-star-outline"
		},
		checkIcon: "material-check",
		btnPlusClass: "mbsc-ic mbsc-ic-material-keyboard-arrow-down",
		btnMinusClass: "mbsc-ic mbsc-ic-material-keyboard-arrow-up",
		btnCalPrevClass: "mbsc-ic mbsc-ic-material-keyboard-arrow-left",
		btnCalNextClass: "mbsc-ic mbsc-ic-material-keyboard-arrow-right",
		onMarkupReady: function(b) {
			a.mobiscroll.themes.material.initRipple(b, ".dwb-e", "dwb-d", "dwb-nhl")
		},
		onEventBubbleShow: function(b, l) {
			var k = l.hasClass("dw-cal-events-b"),
			c = a(".dw-cal-event-color", l).eq(k ? 0 : -1).css("background-color");
			a(".dw-cal-events-arr", l).css("border-color", k ? "transparent transparent " + c + " transparent": c + "transparent transparent transparent")
		}
	};
	a.mobiscroll.themes.listview["material-dark"] = {
		baseTheme: "material",
		onItemActivate: function(b, l) {
			a.mobiscroll.themes.material.addRipple(b, l)
		},
		onItemDeactivate: function() {
			a.mobiscroll.themes.material.removeRipple()
		},
		onSlideStart: function(b) {
			a(".mbsc-ripple", b).remove()
		},
		onSortStart: function(b) {
			a(".mbsc-ripple", b).remove()
		}
	};
	a.mobiscroll.themes.menustrip["material-dark"] = {
		baseTheme: "material",
		onInit: function() {
			a.mobiscroll.themes.material.initRipple(a(this), ".mbsc-ms-item", "mbsc-btn-d", "mbsc-btn-nhl")
		}
	};
	a.mobiscroll.themes.form["material-dark"] = {
		baseTheme: "material",
		onControlActivate: function(b, l) {
			var k;
			if ("button" == b[0].type || "submit" == b[0].type) k = b;
			"segmented" == b.attr("data-role") && (k = b.next());
			b.hasClass("mbsc-stepper-control") && !b.hasClass("mbsc-step-disabled") && (k = b.find(".mbsc-segmented-content"));
			k && a.mobiscroll.themes.material.addRipple(k, l)
		},
		onControlDeactivate: function() {
			a.mobiscroll.themes.material.removeRipple()
		}
	};
	a.mobiscroll.themes.progress["material-dark"] = {
		baseTheme: "material"
	}
})(jQuery); (function(a) {
	a.mobiscroll.themes.frame["mobiscroll-dark"] = {
		baseTheme: "mobiscroll",
		rows: 5,
		showLabel: !1,
		headerText: !1,
		btnWidth: !1,
		selectedLineHeight: !0,
		selectedLineBorder: 1,
		dateOrder: "MMddyy",
		weekDays: "min",
		checkIcon: "ion-ios7-checkmark-empty",
		btnPlusClass: "mbsc-ic mbsc-ic-arrow-down5",
		btnMinusClass: "mbsc-ic mbsc-ic-arrow-up5",
		btnCalPrevClass: "mbsc-ic mbsc-ic-arrow-left5",
		btnCalNextClass: "mbsc-ic mbsc-ic-arrow-right5"
	};
	a.mobiscroll.themes.listview["mobiscroll-dark"] = {
		baseTheme: "mobiscroll"
	};
	a.mobiscroll.themes.menustrip["mobiscroll-dark"] = {
		baseTheme: "mobiscroll"
	};
	a.mobiscroll.themes.form["mobiscroll-dark"] = {
		baseTheme: "mobiscroll"
	};
	a.mobiscroll.themes.progress["mobiscroll-dark"] = {
		baseTheme: "mobiscroll"
	}
})(jQuery); (function(a) {
	a.mobiscroll.themes.frame["android-holo-light"] = {
		baseTheme: "android-holo",
		dateOrder: "Mddyy",
		rows: 5,
		minWidth: 76,
		height: 36,
		showLabel: !1,
		selectedLineHeight: !0,
		selectedLineBorder: 2,
		useShortLabels: !0,
		icon: {
			filled: "star3",
			empty: "star"
		},
		btnPlusClass: "mbsc-ic mbsc-ic-arrow-down6",
		btnMinusClass: "mbsc-ic mbsc-ic-arrow-up6"
	};
	a.mobiscroll.themes.listview["android-holo-light"] = {
		baseTheme: "android-holo"
	};
	a.mobiscroll.themes.menustrip["android-holo-light"] = {
		baseTheme: "android-holo"
	};
	a.mobiscroll.themes.form["android-holo-light"] = {
		baseTheme: "android-holo"
	};
	a.mobiscroll.themes.progress["android-holo-light"] = {
		baseTheme: "android-holo"
	}
})(jQuery); (function(a) {
	a.mobiscroll.themes.frame["wp-light"] = {
		baseTheme: "wp",
		minWidth: 76,
		height: 76,
		accent: "none",
		dateOrder: "mmMMddDDyy",
		headerText: !1,
		showLabel: !1,
		deleteIcon: "backspace4",
		icon: {
			filled: "star3",
			empty: "star"
		},
		btnWidth: !1,
		btnStartClass: "mbsc-ic mbsc-ic-play3",
		btnStopClass: "mbsc-ic mbsc-ic-pause2",
		btnResetClass: "mbsc-ic mbsc-ic-stop2",
		btnLapClass: "mbsc-ic mbsc-ic-loop2",
		btnHideClass: "mbsc-ic mbsc-ic-close",
		btnCalPrevClass: "mbsc-ic mbsc-ic-arrow-left2",
		btnCalNextClass: "mbsc-ic mbsc-ic-arrow-right2",
		btnPlusClass: "mbsc-ic mbsc-ic-plus",
		btnMinusClass: "mbsc-ic mbsc-ic-minus",
		onMarkupInserted: function(b, l) {
			var k, c, j, f = l.settings;
			if ("clickpick" != l.settings.mode) a(".dwwl", b).on("touchstart mousedown wheel mousewheel",
			function(i) {
				if (! ("mousedown" === i.type && c || (a.isArray(f.readonly) ? f.readonly[a(".dwwl", b).index(this)] : f.readonly))) c = "touchstart" === i.type,
				k = !0,
				j = a(this).hasClass("wpa"),
				a(".dwwl", b).removeClass("wpa"),
				a(this).addClass("wpa")
			}).on("touchmove mousemove",
			function() {
				k = !1
			}).on("touchend mouseup",
			function(b) {
				k && j && a(b.target).closest(".dw-li").hasClass("dw-sel") && a(this).removeClass("wpa");
				"mouseup" === b.type && (c = !1);
				k = !1
			})
		},
		onThemeLoad: function(a, l) {
			if (a && a.dateOrder && !l.dateOrder) {
				var k = a.dateOrder,
				k = k.match(/mm/i) ? k.replace(/mmMM|mm|MM/, "mmMM") : k.replace(/mM|m|M/, "mM"),
				k = k.match(/dd/i) ? k.replace(/ddDD|dd|DD/, "ddDD") : k.replace(/dD|d|D/, "dD");
				l.dateOrder = k
			}
		},
		onInit: function(a) {
			a = a.buttons;
			a.set.icon = "checkmark";
			a.cancel.icon = "close";
			a.clear.icon = "close";
			a.ok && (a.ok.icon = "checkmark");
			a.close && (a.close.icon = "close");
			a.now && (a.now.icon = "loop2")
		}
	};
	a.mobiscroll.themes.listview["wp-light"] = {
		baseTheme: "wp"
	};
	a.mobiscroll.themes.menustrip["wp-light"] = {
		baseTheme: "wp"
	};
	a.mobiscroll.themes.form["wp-light"] = {
		baseTheme: "wp"
	};
	a.mobiscroll.themes.progress["wp-light"] = {
		baseTheme: "wp"
	}
})(jQuery); (function(a) {
	a.mobiscroll.themes.frame["sense-dark"] = {
		baseTheme: "sense",
		minWidth: 64,
		height: 60,
		btnStartClass: "mbsc-ic mbsc-ic-play3",
		btnStopClass: "mbsc-ic mbsc-ic-pause2",
		btnResetClass: "mbsc-ic mbsc-ic-stop2",
		btnLapClass: "mbsc-ic mbsc-ic-loop2",
		btnCalPrevClass: "mbsc-ic mbsc-ic-arrow-left5",
		btnCalNextClass: "mbsc-ic mbsc-ic-arrow-right5",
		btnPlusClass: "mbsc-ic mbsc-ic-arrow-down5",
		btnMinusClass: "mbsc-ic mbsc-ic-arrow-up5",
		onMarkupReady: function(b, l) {
			var k = l.settings,
			c = k.height,
			k = k.rows;
			a(".dww", b).height(k * c - 40);
			a(".dw-ul", b).css("margin-top", k / 2 * c - c / 2 - 20 + "px");
			a(".dwwms .dw-ul", b).css("margin-top", "-20px");
			a(".dwwb", b).css({
				height: c - 20 + "px",
				lineHeight: c - 20 + "px"
			})
		}
	};
	a.mobiscroll.themes.listview["sense-dark"] = {
		baseTheme: "sense"
	};
	a.mobiscroll.themes.menustrip["sense-dark"] = {
		baseTheme: "sense"
	}
})(jQuery);